wedesignit / common
Reusable PSR-compatible API client framework with middleware and token authentication
v1.0.2
2025-06-06 14:53 UTC
Requires
- php: ^8.2 || ^8.3 || ^8.4
- psr/http-client: ^1.0
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^1.1 || ^2.0 || ^3.0
- psr/simple-cache: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.9
- guzzlehttp/psr7: ^2.0
- laminas/laminas-diactoros: ^3.6
- nyholm/psr7: ^1.8
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.7
- swisnl/laravel-psr-http-client-bridge: ^0.2.1
- symfony/cache: ^6.0 || ^7.0
This package is auto-updated.
Last update: 2025-06-06 14:56:11 UTC
README
Some common code which can be used by other packages. For now it is limited to a PSR-18 compliant HTTP client with a middleware stack, and some traits for common API client functionality.
Used standards:
- PSR-7: request-object (universal request-object)
- PSR-15: middleware stack (universal middleware stack)
- PSR-16: cache interface (universal cache interface)
- PSR-17: request-factory (universal request-object)
- PSR-18: client interface as typehint (not hardcoding Guzzle)
For more detailed docs, see the docs folder.
Installing
Via Composer
composer require wedesignit/common
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
About WeDesignIt
WeDesignIt is a web agency from Oude-Tonge (reserve-Zeeland), the Netherlands specialized in custom web applications, API development, and integrations.