https://github.com/defro/quotable-php
PHP library to request Quotable API.
https://github.com/defro/quotable-php
Last synced: 28 days ago
JSON representation
PHP library to request Quotable API.
- Host: GitHub
- URL: https://github.com/defro/quotable-php
- Owner: defro
- License: mit
- Created: 2022-09-09T12:18:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T00:40:59.000Z (over 3 years ago)
- Last Synced: 2025-02-28T03:24:24.251Z (over 1 year ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Quotable API
[](https://github.com/defro/quotable-php/releases)
[](LICENSE)
[](https://travis-ci.org/defro/quotable-php)
[](https://insight.symfony.com/projects/bb6b7848-7e7a-4e9f-a25b-397369caeef5)
[](https://scrutinizer-ci.com/g/defro/quotable-php/?branch=master)
[](https://scrutinizer-ci.com/g/defro/quotable-php/?branch=master)
[](https://styleci.io/repos/534799760)
[](https://packagist.org/packages/defro/quotable-php)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MSER6KJHQM9NS)
This package can get quotes and their authors using [Quotable](https://github.com/lukePeavey/quotable). Here's a quick example:
```php
$client = new \GuzzleHttp\Client();
$quotable = new \Defro\Quotable\Api($client);
$random = $quotable
->getRandomQuote();
var_dump($random);
```
## Documentation
Read how to install, use this package, customize it on [documentation page](https://defro.github.io/quotable-php/).
## License
The MIT License (MIT). Please see [license file](LICENSE) for more information.