https://github.com/apify/apify-php-tutorial
https://github.com/apify/apify-php-tutorial
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apify/apify-php-tutorial
- Owner: apify
- Created: 2021-08-30T13:31:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T12:58:23.000Z (over 3 years ago)
- Last Synced: 2025-02-16T16:19:53.139Z (about 1 year ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apify PHP Tutorial
Collection of examples on how to use [Apify](https://www.apify.com) API with PHP using [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) library, serving as supporting material for [Apify PHP tutorial](TODO:LINK).
## Setting up
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](https://requestbin.com/r).
## Running the examples
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.
- Laravel: https://laravel.com/docs/8.x/container
- CodeIgniter: https://codeigniter4.github.io/userguide/concepts/services.html
- Symphony: https://symfony.com/doc/current/service_container.html
- Nette: https://doc.nette.org/en/3.0/di-services