alnutile / saucelabs_client
Complete copy of php-github-api-master since it is such a good client for GithubAPI
Installs: 2 381
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- ext-curl: *
- guzzle/guzzle: ~3.7
- symfony/event-dispatcher: >=2.3
- symfony/process: >=2.3
- vlucas/phpdotenv: dev-master
Requires (Dev)
- mockery/mockery: 0.9.*@dev
- php-vcr/php-vcr: dev-master
- phpunit/phpunit: ~3.0
- vlucas/phpdotenv: 1.0.6
This package is auto-updated.
Last update: 2024-12-06 09:25:17 UTC
README
This is a generic client modeled after the GitHub API https://github.com/KnpLabs/php-github-api by KnpLabs.
They did a great job of making a client that includes Events, Guzzle, Cache and making it super testable.
This client can easily be ported to any providers since I kept the Classes and Methods pretty generic.
API
Check out the test/SauceLabs folder for a list of examples usages. Also note the PHP/VCR library to speed up all of these calls.
Setup
Add it to your composer.json see https://packagist.org/packages/alnutile/saucelabs_client for updates to the settings. Then copy the env_example file to .env and put in your username and token. Then run composer install and the library should allow you to make these requests to SauceLabs using your username and token.
RoadMap
Break out anything into interfaces that will help to make this easier to be a foundation to other automated testing services. As well as move those into their own composer libraries.