tkriek / copernica-api-php
Bindings and implementation of the REST side of the Copernica API
Requires
- php: ^5.6 || ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-19 22:45:22 UTC
README
The goal of this package was to make it more usable when writing small synchronization scripts or just communicating to the Copernica API in a RESTful way.
You will need an access token for your application from the Copernica Dashboard which can be found here.
Example of how to use the package.
Follow the available methods and function calls from the official Copernica Documentation
$api = new \TomKriek\CopernicaAPI\CopernicaAPI('access token here'); $api->database(1)->fields()->get();
This will fetch all fields for the database with ID 1
The package is in a super infancy stage with missing tests and not all API exceptions being caught and processed correctly. Feel free to create issues or fork the repo and make PRs to improve or enhance it.