friendsofsymfony / http-cache
Tools to manage HTTP caching proxies with PHP
Installs: 11 811 732
Dependents: 27
Suggesters: 1
Security: 0
Stars: 353
Watchers: 12
Forks: 60
Open Issues: 8
Requires
- php: ^8.1
- php-http/async-client-implementation: ^1.1.0 || ^2.0
- php-http/client-common: ^1.1.0 || ^2.0
- php-http/discovery: ^1.12
- psr/http-client-implementation: ^1.0 || ^2.0
- psr/http-factory: ^1.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/options-resolver: ^6.4 || ^7.0
Requires (Dev)
- mockery/mockery: ^1.6.0
- monolog/monolog: ^1.0
- php-http/guzzle7-adapter: ^1
- php-http/mock-client: ^1.6.0
- phpunit/phpunit: ^10.5
- symfony/http-kernel: ^6.4|| ^7.0
- symfony/process: ^6.4|| ^7.0
Suggests
- friendsofsymfony/http-cache-bundle: For integration with the Symfony framework
- monolog/monolog: For logging issues while invalidating
- phpunit/phpunit: To build tests with the WebServerSubscriber, ^10.0
Conflicts
- 3.x-dev
- 3.1.0
- 3.0.0
- 2.x-dev
- 2.16.2
- 2.16.1
- 2.16.0
- 2.15.3
- 2.15.2
- 2.15.1
- 2.15.0
- 2.14.2
- 2.14.1
- 2.14.0
- 2.13.0
- 2.12.x-dev
- 2.12.1
- 2.12.0
- 2.11.0
- 2.10.1
- 2.10.0
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.x-dev
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.x-dev
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 2.0.0-alpha1
- 1.4.x-dev
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-RC1
- 1.0.0-beta1
- 1.0.0-alpha4
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-varnish-admin
This package is auto-updated.
Last update: 2024-11-22 16:14:19 UTC
README
Introduction
This library integrates your PHP applications with HTTP caching proxies such as Varnish. Use this library to send invalidation requests from your application to the caching proxy and to test your caching and invalidation code against a Varnish setup.
It does this by abstracting some caching concepts and attempting to make sure these can be supported across Varnish, Nginx and Symfony HttpCache.
If you use Symfony, have a look at the FOSHttpCacheBundle. The bundle provides the invalidator as a service, along with a number of Symfony-specific features to help with caching and caching proxies.
Features
- Send cache invalidation requests with minimal impact on performance.
- Cache tagging abstraction for caching proxy systems that support it.
- Use the built-in support for Varnish, NGINX, the Symfony reverse proxy from the http-kernel component, the CDNs fastly and cloudflare, or implement your own caching proxy client.
- Test your application against your Varnish or NGINX setup with the help of a PHPUnit functional test case.
Documentation
For more information, see the documentation.
License
This library is released under the MIT license. See the included LICENSE file for more information.