https://github.com/aedart/athenaeum-http-messages
[READ ONLY] Athenaeum Http Messages package - see https://github.com/aedart/athenaeum
https://github.com/aedart/athenaeum-http-messages
Last synced: about 1 year ago
JSON representation
[READ ONLY] Athenaeum Http Messages package - see https://github.com/aedart/athenaeum
- Host: GitHub
- URL: https://github.com/aedart/athenaeum-http-messages
- Owner: aedart
- License: bsd-3-clause
- Created: 2020-09-27T07:57:08.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T08:36:05.000Z (over 1 year ago)
- Last Synced: 2024-11-21T09:29:51.694Z (over 1 year ago)
- Language: PHP
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Athenaeum Http Messages
This package offers a few [PSR-7 Http Message](https://www.php-fig.org/psr/psr-7/) utilities.
## Example
Amongst the utilities are request and response serializers, able to serialize a to `string` or `array`.
```php
$factory = $this->getHttpSerializerFactory();
$serializer = $factory->make($response);
echo (string) $serializer;
// Example Output:
//
// HTTP/1.1 201 Created
// Content-Type: application/json
//
// {"id":458712,"name":"Sven Jr.","age":27}
```
## Documentation
Please read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.
## Repository
The mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)
## Versioning
This package follows [Semantic Versioning 2.0.0](http://semver.org/)
## License
[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package