PHPackages                             joaquinpereira/laravel-pexels - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. joaquinpereira/laravel-pexels

ActiveLibrary[API Development](/categories/api)

joaquinpereira/laravel-pexels
=============================

library to consume the pexels api (https://www.pexels.com/)

0132[1 PRs](https://github.com/joaquinpereira/laravel-pexels/pulls)PHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/joaquinpereira/laravel-pexels)[ Packagist](https://packagist.org/packages/joaquinpereira/laravel-pexels)[ RSS](/packages/joaquinpereira-laravel-pexels/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-pexels
==============

[](#laravel-pexels)

This is a package made for laravel, that connects to the pexels api and gets images or videos.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2
- Account at  and obtain the api key

Installation
------------

[](#installation)

```
composer require joaquinpereira/laravel-pexels
```

Configuration
-------------

[](#configuration)

You must publish the config/pexel.php configuration file with the following command:

```
php artisan vendor:publish --provider="joaquinpereira\Pexels\Providers\PexelsServiceProvider" --tag="config"
```

In the .env file of the project you must add the following key PEXELS\_API\_KEY and place the value of your key provided by the pexels site

```
PEXELS_API_KEY="YOUR_PEXELS_API_KEY"
```

Examples of use:

```
use joaquinpereira\Pexels\Facades\Pexels;

Route::get('/pexels', function () {

	//Images
    dump(Pexels::image_search('modern apartment'));
    dump(Pexels::image_search('modern apartment',20, 25));
    dump(Pexels::image_curated());
    dump(Pexels::image_curated(3,15));
    dump(Pexels::image_detail(17579690));
    dump(Pexels::getRandomImage('beach','landscape'));

	//videos
    dump(Pexels::video_search('android robot'));
    dump(Pexels::video_search('android robot', 3, 15));
    dump(Pexels::popular_videos());
    dump(Pexels::popular_videos(5,20));
    dump(Pexels::getRandomVideo('dogs'));
    dump(Pexels::video_detail(15570408));
});
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c4d36e56702ebc66d0364af2be68d12658500f4ec186c649349f5280ddebe26?d=identicon)[jpereira](/maintainers/jpereira)

---

Top Contributors

[![joaquinpereira](https://avatars.githubusercontent.com/u/959598?v=4)](https://github.com/joaquinpereira "joaquinpereira (5 commits)")

### Embed Badge

![Health badge](/badges/joaquinpereira-laravel-pexels/health.svg)

```
[![Health](https://phpackages.com/badges/joaquinpereira-laravel-pexels/health.svg)](https://phpackages.com/packages/joaquinpereira-laravel-pexels)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
