PHPackages                             irazasyed/php-stock-media - 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. [Image &amp; Media](/categories/media)
4. /
5. irazasyed/php-stock-media

ActiveLibrary[Image &amp; Media](/categories/media)

irazasyed/php-stock-media
=========================

PHP Stock Media - the ultimate library for sourcing stock images, stock videos, and other stock media resources from multiple online stock services with Laravel support out of the box!

1.0.0(4mo ago)215[3 PRs](https://github.com/irazasyed/php-stock-media/pulls)MITPHPPHP ^8.1CI passing

Since Mar 20Pushed 1w ago1 watchersCompare

[ Source](https://github.com/irazasyed/php-stock-media)[ Packagist](https://packagist.org/packages/irazasyed/php-stock-media)[ Docs](https://github.com/irazasyed/php-stock-media)[ RSS](/packages/irazasyed-php-stock-media/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (7)Versions (10)Used By (0)

PHP Stock Media
===============

[](#php-stock-media)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f9da5c98e75838fe2d94d966295a05b9d580109a1086fb7f6b9de4e27ee05070/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6972617a61737965642f7068702d73746f636b2d6d656469612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irazasyed/php-stock-media)[![GitHub Tests Action Status](https://camo.githubusercontent.com/df83fc6bd2c2b8951133a3212ec365edcf1dc055983b429fec1b9af4d47c9e1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6972617a61737965642f7068702d73746f636b2d6d656469612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/irazasyed/php-stock-media/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ceacda0f93f8c2ebc6613c182b580e2ac8e6babc93adc2ac9607101efe250a80/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6972617a61737965642f7068702d73746f636b2d6d656469612f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/irazasyed/php-stock-media/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/89debb6ccc2df3675f1e32dce47f1746b059179eaecd21ce1d1629dba34f9b38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6972617a61737965642f7068702d73746f636b2d6d656469612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irazasyed/php-stock-media)

PHP Stock Media - the ultimate library for sourcing stock images, stock videos, and other stock media resources from multiple online stock services with Laravel support out of the box!

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

[](#installation)

You can install the package via composer:

```
composer require irazasyed/php-stock-media
```

You can publish config file, if you're using Laravel:

```
php artisan vendor:publish --tag="php-stock-media-config"
```

Usage
-----

[](#usage)

```
use Irazasyed\StockMedia;
use Irazasyed\StockMedia\Services\Unsplash;

$apiKey = 'UNSPLASH_API_KEY';

$stockMedia = new StockMedia();
$stockMedia->setDefault(Unsplash::class);

$service = $stockMedia->setApiKey($apiKey);
$result = $service->search(['query' => 'nature']);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Irfaq Syed](https://github.com/irazasyed)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance87

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1060 days

Total

2

Last Release

141d ago

Major Versions

0.0.1 → 1.0.02026-02-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1915268?v=4)[Irfaq Syed](/maintainers/irazasyed)[@irazasyed](https://github.com/irazasyed)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (7 commits)")

---

Tags

laravel-stock-mediapexelsphp-stock-mediapixabaystock-imagesstock-mediastock-mp3stock-videounsplashlaravelUnsplashpexelsPixabayirazasyedphp-stock-mediastock imagesstock videosstock mediastock services

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/irazasyed-php-stock-media/health.svg)

```
[![Health](https://phpackages.com/badges/irazasyed-php-stock-media/health.svg)](https://phpackages.com/packages/irazasyed-php-stock-media)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M885](/packages/laravel-socialite)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M594](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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