Collection of examples on how to use Apify API with PHP using guzzlehttp/guzzle library, serving as supporting material for Apify PHP tutorial.
Run composer install
to get needed dependencies.
Copy the /examples/settings.php.template
file as /examples/settings.php
and fill in your Apify API token and optionally also a request bin endpoint.
Now that everything is set up, you can run individual examples in the /examples
folder, they should be more or less framework-agnostic.
Adding the client as service depends on the actual framework you use, following links might help you find out how to do it in yours.