PHPackages                             iceqi/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. iceqi/pexels

ActiveLibrary[API Development](/categories/api)

iceqi/pexels
============

Pexels API Client for www.pexels.com

0.1.3(9y ago)091MITPHPPHP &gt;=5.4.0

Since Oct 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/iceqi/pexels)[ Packagist](https://packagist.org/packages/iceqi/pexels)[ Docs](https://www.glooby.se)[ RSS](/packages/iceqi-pexels/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Pexels API Client
=================

[](#pexels-api-client)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e9aa5b816df3dac7c24575e63aa6ce92cb0e8eeb5eae67fca6840455649c2071/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676c6f6f62792f706578656c732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/glooby/pexels/?branch=master)[![Build Status](https://camo.githubusercontent.com/eeb2847ff800cff5ad8ef2f16ecc3236b1692532e0096f4f0824a8c21e1d15f2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676c6f6f62792f706578656c732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/glooby/pexels/build-status/master)[![Latest Stable Version](https://camo.githubusercontent.com/604a91e0c7692dd097fb8c2d50547401a3473a65ad6a18c30cc5072e7fec1623/68747470733a2f2f706f7365722e707567782e6f72672f676c6f6f62792f706578656c732f76657273696f6e)](https://packagist.org/packages/glooby/pexels)[![Total Downloads](https://camo.githubusercontent.com/e2319a0f8f57d90a65dace56b41ff6cfdf7454b8b3cc5058b2744ecd2d9e874f/68747470733a2f2f706f7365722e707567782e6f72672f676c6f6f62792f706578656c732f646f776e6c6f616473)](https://packagist.org/packages/glooby/pexels)[![License](https://camo.githubusercontent.com/d7b3ca38a8c7b26f3cfd752ec69208d86d85bd04d8050ed033385b57e9078fd3/68747470733a2f2f706f7365722e707567782e6f72672f676c6f6f62792f706578656c732f6c6963656e7365)](https://packagist.org/packages/glooby/pexels)

Install
-------

[](#install)

Install the Pexels API Client with Composer.

```
"require": {
    "glooby/pexels": "~0.1"
},
```

Usage
-----

[](#usage)

Create an instance of the Pexels API Client by passing in your API token as parameter.

```
$pexels = new \Glooby\Pexels\Client("xxxxx");
```

Perform a search, the response gets returned as an array

```
$response = $pexels->search('london');
```

Loop trough photos and display them

```
$images = json_decode($pexels->search('london')->getBody())->images;
foreach ($images as $image) {
 echo ""
}
```

Example response

```
{
   "total_results":6,
   "page":1,
   "per_page":15,
   "photos":[
      {
         "id":57456,
         "width":4000,
         "height":3000,
         "url":"https://www.pexels.com/photo/brown-rocky-mountain-painting-57456/",
         "photographer":"Pixabay",
         "src":{
            "original":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456.jpeg",
            "large":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-large.jpeg",
            "medium":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-medium.jpeg",
            "small":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-small.jpeg",
            "portrait":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-portrait.jpeg",
            "square":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-square.jpeg",
            "landscape":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-landscape.jpeg",
            "tiny":"https://static.pexels.com/photos/57456/torres-del-paine-mountains-granite-granite-rock-57456-tiny.jpeg"
         }
      }
   ]
}
```

[www.glooby.com](https://www.glooby.com)[www.glooby.se](https://www.glooby.se)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

###  Release Activity

Cadence

Every ~13 days

Total

4

Last Release

3461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5836c32afc299958c9e27e778bb553edc9da20fb80c91b28fb1af618ad0e9f23?d=identicon)[iceqi](/maintainers/iceqi)

---

Top Contributors

[![kilhage](https://avatars.githubusercontent.com/u/325786?v=4)](https://github.com/kilhage "kilhage (5 commits)")[![iceqi](https://avatars.githubusercontent.com/u/3378315?v=4)](https://github.com/iceqi "iceqi (4 commits)")[![bernard-ng](https://avatars.githubusercontent.com/u/31113941?v=4)](https://github.com/bernard-ng "bernard-ng (1 commits)")

---

Tags

apisdkimagespexelsglooby

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[glooby/pexels

Pexels API Client for www.pexels.com

2731.6k1](/packages/glooby-pexels)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)

PHPackages © 2026

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