pxgamer / splas-php
A simple PHP wrapper for utilising the Unsplash api.
                                    Fund package maintenance!
                                                                            
                                                                                                                                        owenvoke
                                                                                    
                                                                            
                                                                                                                                        ecologi.com/owenvoke?gift-trees
                                                                                    
                                                                
Installs: 243
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pxgamer/splas-php
Requires
- php: ^7.1
- ext-curl: *
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^6.0 || ^7.0
- squizlabs/php_codesniffer: ^3.1
README
A simple PHP wrapper for utilising the Unsplash api.
Install
Via Composer
$ composer require pxgamer/splas-php
Usage
$splas = new Splas('APP_ID');
| Functions | Parameters | Returns | 
|---|---|---|
| $splas->getPhotos() | void | array | 
| $splas->getCuratedPhotos() | void | array | 
| $splas->getRandom() | void | array | 
| $splas->getPhoto($id) | string | array | 
| $splas->getStats($id) | string | array | 
| $splas->getLink($id) | string | array | 
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.