https://github.com/defro/colourlovers
PHP library to request Colour Lovers REST Api.
https://github.com/defro/colourlovers
Last synced: about 2 months ago
JSON representation
PHP library to request Colour Lovers REST Api.
- Host: GitHub
- URL: https://github.com/defro/colourlovers
- Owner: defro
- License: mit
- Created: 2022-09-09T20:43:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T00:37:04.000Z (over 3 years ago)
- Last Synced: 2025-09-13T21:23:44.960Z (9 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ColourLovers API
[](https://github.com/defro/colourlovers/releases)
[](LICENSE)
[](https://travis-ci.org/defro/colourlovers)
[](https://insight.symfony.com/projects/bb6b7848-7e7a-4e9f-a25b-397369caeef5)
[](https://scrutinizer-ci.com/g/defro/colourlovers/?branch=master)
[](https://scrutinizer-ci.com/g/defro/colourlovers/?branch=master)
[](https://styleci.io/repos/156726302)
[](https://packagist.org/packages/defro/colourlovers)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MSER6KJHQM9NS)
This package can get quotes and their authors using [Colour Lovers API](http://www.colourlovers.com/api).
Here's a quick example:
```php
$client = new \GuzzleHttp\Client();
$colourLovers = new \Defro\ColourLovers\Api($client);
$randomPalette = $colourLovers
->getRandomPalette();
var_dump($randomPalette);
```
## Documentation
Read how to install, use this package, customize it on [documentation page](https://defro.github.io/colourlovers/).
## License
The MIT License (MIT). Please see [license file](LICENSE) for more information.