| 1 |
## Common Protos PHP |
| 2 |
|
| 3 |
[](https://cloud.google.com/terms/launch-stages](https://cloud.google.com/terms/launch-stages](https://cloud.google.com/terms/launch-stages) |
| 4 |
|
| 5 |
 |
| 6 |
|
| 7 |
- [](https://googleapis.github.io/common-protos-phpDocumentation](https://googleapis.github.io/common-protos-php](https://googleapis.github.io/common-protos-php) |
| 8 |
|
| 9 |
This repository is a home for the [protocol buffer][protobuf] types which are |
| 10 |
common dependencies throughout the Google API ecosystem, generated for PHP. |
| 11 |
The protobuf definitions for these generated PHP classes are provided by the |
| 12 |
[Common Components AIP][common-components-aip] repository. |
| 13 |
|
| 14 |
## Using these generated classes |
| 15 |
|
| 16 |
These classes are made available under an Apache license (see `LICENSE`) and |
| 17 |
you are free to depend on them within your applications. They are |
| 18 |
considered stable and will not change in backwards-incompaible ways. |
| 19 |
|
| 20 |
They are distributed as the [google/common-protos][packagist-common-protos] |
| 21 |
composer package, available on [Packagist][packagist]. |
| 22 |
|
| 23 |
In order to depend on these classes, add the following line to your |
| 24 |
composer.json file in the `requires` section: |
| 25 |
|
| 26 |
``` |
| 27 |
"google/common-protos": "^2.0" |
| 28 |
``` |
| 29 |
|
| 30 |
Or else use composer from the command line: |
| 31 |
|
| 32 |
```bash |
| 33 |
composer require google/common-protos |
| 34 |
``` |
| 35 |
|
| 36 |
## License |
| 37 |
|
| 38 |
These classes are licensed using the Apache 2.0 software license, a |
| 39 |
permissive, copyfree license. You are free to use them in your applications |
| 40 |
provided the license terms are honored. |
| 41 |
|
| 42 |
[api-style]: https://cloud.google.com/apis/design/ |
| 43 |
[protobuf]: https://developers.google.com/protocol-buffers/ |
| 44 |
[common-components-aip]: https://google.aip.dev/213 |
| 45 |
[packagist-common-protos]: https://packagist.org/packages/google/common-protos/ |
| 46 |
[packagist]: https://packagist.org/ |
| 47 |
|