webeweb/pexels-library

Integrate Pexels API with your projects

v3.7.1 2024-05-28 09:27 UTC

README

Github actions workflow status Coveralls Packagist version Packagist license

Integrate Pexels API with your projects.

If you like this package, pay me a beer (or a coffee) paypal.me

Compatibility

PHP

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:

composer require webeweb/pexels-library

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

Read the documentation. You can also consult or execute sample scripts into dev folder.

Testing

To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:

git clone https://github.com/webeweb/pexels-library.git
cd pexels-library
composer install

Once all required libraries are installed then do:

vendor/bin/phpunit

IMPORTANT NOTICE: To test the package with your API key, pastes it into a .token file at the root of this package.

License

pexels-library is released under the MIT License. See the bundled LICENSE file for details.

Please note that the Pexels API is not free for use, see their API page for details on usage.

Donate

If you like this work, please consider donating at paypal.me