carthage / php-sdk
Carthage Software Development Kit for PHP
Requires
- php: ^8.2
- jane-php/open-api-runtime: ^7.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.22
- guzzlehttp/guzzle: ^7.7
- jane-php/open-api-3: ^7.5
This package is auto-updated.
Last update: 2024-04-17 22:51:31 UTC
README
Installation 🚀
Install the SDK using Composer with the following command:
composer require carthage/php-sdk guzzlehttp/guzzle
Usage 💼
Creating a Client
use GuzzleHttp\Client as GuzzleClient; use Carthage\Sdk\Client; $client = Client::create(new GuzzleClient([ 'base_uri' => 'https://my-carthage-server.example.com', ])); $pingResource = $client->ping(); echo "Server is up and running!\n"; echo "Server Time: {$pingResource->getTime()->format('Y-m-d H:i:s')}\n"; echo "Quote: {$pingResource->getQuote()}\n";
Examples
Refer to the examples
directory for more examples.
Code Of Conduct 🤝
Our community is guided by a Code of Conduct, and we expect all contributors to respect it. See the CODE_OF_CONDUCT
for more details.
Contributing 🎁
The Carthage SDK for PHP thrives on contributions from the open-source community. We value every contribution, no matter how small.
License 📜
The Carthage SDK for PHP is distributed under the MIT License. See LICENSE
for more information.
We hope you enjoy using the Carthage SDK for PHP! For any queries or suggestions, don't hesitate to open an issue or submit a pull request. Happy coding!