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

ActiveLibrary

wangqs/pexels-sdk
=================

API encapsulation of pexels --- Pexels 的 api 封装

v1.0.1(5y ago)010MITPHPPHP &gt;=5.4.0

Since Mar 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wqsacy/pexels-sdk)[ Packagist](https://packagist.org/packages/wangqs/pexels-sdk)[ RSS](/packages/wangqs-pexels-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

 pexels-sdk
============

[](#-pexels-sdk-)

 API encapsulation of pexels --- Pexels 的 api 封装.

Installing
----------

[](#installing)

```
$ composer require wangqs/pexels-sdk -vvv
```

Usage
-----

[](#usage)

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

```
$pexels = new \Wangqs\PexelsSdk\Client("your token");
```

Perform a search, the response gets returned as an array

```
$normalImg = json_decode($pexels->search('keyword')->getBody())->photos;

$featuredImg = json_decode($pexels->curated('keyword')->getBody())->photos;

$normalVideo = json_decode($pexels->videoSearch('keyword')->getBody())->videos;

$featuredVideo = json_decode($pexels->videoCurated('keyword')->getBody())->videos;
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/wangqs/pexels-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/wangqs/pexels-sdk/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1867d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38206909?v=4)[qishan.wang](/maintainers/wqsacy)[@wqsacy](https://github.com/wqsacy)

---

Top Contributors

[![wqsacy](https://avatars.githubusercontent.com/u/38206909?v=4)](https://github.com/wqsacy "wqsacy (8 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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