Download the PHP package aedart/athenaeum-etags without Composer
On this page you can find all versions of the php package aedart/athenaeum-etags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aedart/athenaeum-etags
More information about aedart/athenaeum-etags
Files in aedart/athenaeum-etags
Package athenaeum-etags
Short Description ETags utilities and Http Conditional Request evaluation for your Laravel Application
License BSD-3-Clause
Homepage https://aedart.github.io/athenaeum/
Informations about the package athenaeum-etags
Athenaeum ETags
This package provides a "profile" based approach to generate ETags, and an evaluator to deal with Http Conditional Requests, for your Laravel application.
ETags Examples
Generate
Or to generate ETags that are flagged as "weak" (for weak comparison)
Parsing
To parse ETags from Http headers, you can use the parse()
method. It returns a collection of ETag
instances.
Compare
ETags can also be matched against each other, in accordance with RFC9110.
Using Collection
Using Etag instance
You can also compare individual ETag
instances, using the matches()
method.
Evaluate Http Preconditions Examples
The Evaluator
component is able to process the incoming request against all the defined RFC9110 preconditions, in accordance with specified evaluation precedence.
Depending on the precondition requested, if it passes or fails, the request can either proceed or it will be aborted using customisable Http Exceptions.
Your Laravel application should do the rest, whenever the request is aborted.
To summarise, the following preconditions are supported:
The Evaluator
also supports adding your own custom preconditions to be evaluated, should you need such.
Official Documentation
Please read the official documentation for additional information.
The mono repository is located at github.com/aedart/athenaeum
Versioning
This package follows Semantic Versioning 2.0.0
License
BSD-3-Clause, Read the LICENSE file included in this package
All versions of athenaeum-etags with dependencies
aedart/athenaeum-contracts Version ^8.17
aedart/athenaeum-streams Version ^8.17
aedart/athenaeum-support Version ^8.17
aedart/athenaeum-utils Version ^8.17
illuminate/http Version ^v11.35.0
ramsey/http-range Version ^1.1.0