PHPackages                             reedware/laravel-api - 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. reedware/laravel-api

ActiveLibrary[API Development](/categories/api)

reedware/laravel-api
====================

Adds configurable web api connections to your Laravel application.

v1.1.0(5y ago)04943[1 PRs](https://github.com/tylernathanreed/laravel-api/pulls)MITPHPPHP &gt;=7.1

Since Sep 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tylernathanreed/laravel-api)[ Packagist](https://packagist.org/packages/reedware/laravel-api)[ RSS](/packages/reedware-laravel-api/feed)WikiDiscussions master Synced 1w ago

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

Laravel API
-----------

[](#laravel-api)

This package adds configurable web api connections to your Laravel application.

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

[](#installation)

Require this package with composer.

```
composer require reedware/laravel-api
```

Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the service provider or facade. However, should you still need to reference them, here are their class paths:

```
\Reedware\LaravelApi\ApiServiceProvider::class // Service Provider
\Reedware\LaravelApi\Facade::class // Facade
```

Configuration
-------------

[](#configuration)

You can configure your various api endpoints by using the `~/config/api.php` configuration file.

```
'connections' => [

    'api-name' => [
        'host' => env('API_HOST'),
        'username' => env('API_USERNAME'),
        'password' => env('API_PASSWORD'),
        'options' => [
            'json' => true,
            'expects_json' => true
        ]
    ]

]

```

Usage
-----

[](#usage)

You can now connect to your api using `Api::connection('api-name')`, and subsequently create requests for it:

```
Api::connection('api-name')->request()->url('my/endpoint')->post([
    'my-form-data' => 'with-values'
]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~73 days

Recently: every ~79 days

Total

6

Last Release

2074d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v1.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bfd8171901449cf1e05fa5db261a2f424abca5e26818ce54b95442de0661754?d=identicon)[tylernathanreed](/maintainers/tylernathanreed)

---

Top Contributors

[![tylernathanreed](https://avatars.githubusercontent.com/u/6486381?v=4)](https://github.com/tylernathanreed "tylernathanreed (10 commits)")[![tnguyen-tsi](https://avatars.githubusercontent.com/u/69207211?v=4)](https://github.com/tnguyen-tsi "tnguyen-tsi (7 commits)")

---

Tags

apilaravelConnection

### Embed Badge

![Health badge](/badges/reedware-laravel-api/health.svg)

```
[![Health](https://phpackages.com/badges/reedware-laravel-api/health.svg)](https://phpackages.com/packages/reedware-laravel-api)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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