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)6563[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 yesterday

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

25

—

LowBetter than 35% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

1947d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5470336?v=4)[Lars Eijman](/maintainers/larseijman)[@larseijman](https://github.com/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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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