sokil / php-rest
Framework to build RESTful service
Installs: 160
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/sokil/php-rest
Requires
- php: >=5.3
- guzzle/guzzle: v3.9.1
- psr/log: ~1.0
- sokil/php-guzzlecomponents: 0.*
This package is auto-updated.
Last update: 2020-03-17 14:45:15 UTC
README
Framework to build client libraries for interacting with RESTful services.
Installation
You can install library through Composer:
{ "require": { "sokil/php-rest": "dev-master" } }
Projects based on this library
Basic concepts
Client library contains Request and Response classes for every request. Request incapsulates HTTP method, URL and parameters, and allows to get Response object, which give access to response data, headers and status. Factory allows us to auth on server, and to create and send requests.
Factory
Factory must extend \Sokil\Rest\Client\Factory. This class incapsulates auth login and creates requests.