teo2peer / utopia-api
Easy way to integrate Utopia API into your PHP application
v1.0.3
2022-05-01 21:47 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: >=7.0.0
- vlucas/phpdotenv: ^3.3
README
An easy way to integrate Utopia Api in your PHP App
Requeriments
- PHP 7.2 or later
- Curl
Installation
You can install using composer.
composer require teo2peer/utopia-api
Or download the php file and add it to your project
git clone https://github.com/teo2peer/utopia-api
Add to your code
// downloaded require_once('utopia-api.php') //composer use Teo2Peer\Uapi; $api = new api("URL", "TOKEN"); $result = $api->call()-getSystemInfo(); $api->call()->sendChannelMessage("channelId", "message");
Response will be a json array, like if you make the request directly to the api.
Join Utopia
Join as a developer into Utopia Ecosystem Join Now
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request