PHPackages                             leijman/fmp-api-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. [HTTP &amp; Networking](/categories/http)
4. /
5. leijman/fmp-api-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

leijman/fmp-api-sdk
===================

Financial modeling prep API SDK.

v0.2(5y ago)5563[2 issues](https://github.com/larseijman/fmp-api-sdk/issues)[1 PRs](https://github.com/larseijman/fmp-api-sdk/pulls)MITPHPPHP ^7.3|^8.0

Since Feb 25Pushed 2y ago2 watchersCompare

[ Source](https://github.com/larseijman/fmp-api-sdk)[ Packagist](https://packagist.org/packages/leijman/fmp-api-sdk)[ RSS](/packages/leijman-fmp-api-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Financial Modeling Prep API SDK
===============================

[](#financial-modeling-prep-api-sdk)

[![Version](https://camo.githubusercontent.com/0fef314e9c8de5f3c396cd0e8adb6a08460cf96e33619e82d83760bc6419e2a3/68747470733a2f2f706f7365722e707567782e6f72672f6c65696a6d616e2f666d702d6170692d73646b2f76657273696f6e)](//packagist.org/packages/leijman/fmp-api-sdk)[![CI](https://github.com/larseijman/fmp-api-sdk/actions/workflows/php.yml/badge.svg)](https://github.com/larseijman/fmp-api-sdk/actions/workflows/php.yml)[![Total Downloads](https://camo.githubusercontent.com/1b3de49a3acc12d9a0fcca671884ac06a598071c2ff947e1c04e577598c5e2bd/68747470733a2f2f706f7365722e707567782e6f72672f6c65696a6d616e2f666d702d6170692d73646b2f646f776e6c6f616473)](//packagist.org/packages/leijman/fmp-api-sdk)[![License](https://camo.githubusercontent.com/909566c15612e6b25d4c5488746b9fbb84c4cbaac138b1db6499e76a8e347c66/68747470733a2f2f706f7365722e707567782e6f72672f6c65696a6d616e2f666d702d6170692d73646b2f6c6963656e7365)](//packagist.org/packages/leijman/fmp-api-sdk)

(unofficial) Financial Modeling Prep API SDK for PHP with Laravel 8 support.
This project is in WIP state and may be unstable. Various endpoints will be added in the future and feel free to contribute to this package. Unfortunately I can't guarantee any warranty or liability for this SDK. For any questions feel free to contact me!

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

[](#requirements)

- PHP ^7.3 or ^8.0
- A valid (free) API key from [FMP](https://financialmodelingprep.com/developer)

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

[](#installation)

This SDK is published on Packagist and can be obtained via composer.

```
composer require leijman/fmp-api-sdk
```

Usage
-----

[](#usage)

The SDK uses Guzzle as dependency for interacting with the HTTP layer.

```
$guzzle = new Client([
    'base_uri' => $baseUrl,
    'headers' => [
        'Accept' => 'application/json',
        'Content-Type' => 'application/json'
    ],
    'query' => ['apikey' => $apiKey]
]);
```

You can now use the Guzzle client as a dependency.

```
$client = new \Leijman\FmpApiSdk\Client($guzzle);
```

To communicate to the various endpoint you can use the client like so:

```
use \Leijman\FmpApiSdk\CompanyValuation\Quote;

$endpoint = new Quote($client);
$response = $endpoint->setSymbol('AAPL')->get();

print_r($response);
```

### Laravel usage

[](#laravel-usage)

As of now we only support Laravel 8. If there is any demand for previous versions we might look into adding these.
The package can be published into your Laravel project by the following command:

```
php artisan vendor:publish --provider="Leijman\FmpApiSdk\FmpServiceProvider"
```

The configuration file is accessible in `config/fmp.php`.
Finally update your `.env` file with the given API key.

When everything is set you can access the FMP API by the following structure:

```
use Leijman\FmpApiSdk\Facades\CompanyValuation\StockScreener;

StockScreener::setIsActivelyTrading(true)
    ->setExchange('NYSE,NASDAQ,EURONEXT')
    ->get();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1891d ago

### Community

Maintainers

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

---

Top Contributors

[![larseijman](https://avatars.githubusercontent.com/u/5470336?v=4)](https://github.com/larseijman "larseijman (23 commits)")

---

Tags

apiapi-clientapi-sdkfinancial-modeling-prepfmpfmp-apiguzzlelaravelphpstockstock-analysisstock-apistock-api-phpstock-datastock-marketstock-pricesfmp-api-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leijman-fmp-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/leijman-fmp-api-sdk/health.svg)](https://phpackages.com/packages/leijman-fmp-api-sdk)
```

###  Alternatives

[illuminate/http

The Illuminate Http package.

11936.0M5.0k](/packages/illuminate-http)[api-platform/laravel

API Platform support for Laravel

59126.4k5](/packages/api-platform-laravel)

PHPackages © 2026

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