Download the PHP package 68publishers/crawler-client-php without Composer
On this page you can find all versions of the php package 68publishers/crawler-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package crawler-client-php
Crawler Client PHP
PHP Client for 68publishers/crawler
Installation
Client initialization
The client instance is simply created by calling the static method create()
.
The Guzzle library is used to communicate with the Crawler API. If you want to pass some custom options to the configuration for Guzzle, use the second optional parameter.
Requests to the Crawler API must always be authenticated, so we must provide credentials.
It should be pointed out that the client is immutable - calling the with*
methods always returns a new instance.
This is all that is needed for the client to work properly. You can read about other options on the Advanced options page.
Nette Framework integration
For integration with the Nette Framework please follow this link.
Working with scenarios
Scenarios are handled by ScenarioController
.
List scenarios
Get scenario
Run scenario
As a scenario config we can pass a normal array or use prepared value objects. Both options are valid.
Validate scenario
As a scenario config we can pass a normal array or use prepared value objects. Both options are valid.
Abort scenario
Working with scenario schedulers
Scenario schedulers are handled by ScenarioSchedulersController
.
List scenario schedulers
Get scenario scheduler
Create scenario scheduler
As a scenario config we can pass a normal array or use prepared value objects. Both options are valid.
Update scenario scheduler
As a scenario config we can pass a normal array or use prepared value objects. Both options are valid.
Validate scenario scheduler
As a scenario config we can pass a normal array or use prepared value objects. Both options are valid.
Activate/deactivate scenario scheduler
Delete scenario scheduler
License
The package is distributed under the MIT License. See LICENSE for more information.
All versions of crawler-client-php with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.7
jms/serializer Version ^3.24
symfony/yaml Version ^5.4 || ^6.0 || ^7.0