PHPackages                             matthewbdaly/laravel-internal-requests - 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. matthewbdaly/laravel-internal-requests

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

matthewbdaly/laravel-internal-requests
======================================

Make internal requests with your Laravel app

0.0.2(7y ago)64.1k1MITPHP

Since Nov 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/matthewbdaly/laravel-internal-requests)[ Packagist](https://packagist.org/packages/matthewbdaly/laravel-internal-requests)[ RSS](/packages/matthewbdaly-laravel-internal-requests/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

laravel-internal-requests
=========================

[](#laravel-internal-requests)

[![Build Status](https://camo.githubusercontent.com/0c2d3eb4e7a616cfa397d323a26e49b7daea6d3761e20c530214cb142c049b91/68747470733a2f2f7472617669732d63692e6f72672f6d6174746865776264616c792f6c61726176656c2d696e7465726e616c2d72657175657374732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/matthewbdaly/laravel-internal-requests)[![Coverage Status](https://camo.githubusercontent.com/ba5f7aaab7e31202a935bc828ac6ff08f01676c5a97575067a8e719743ad6460/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6174746865776264616c792f6c61726176656c2d696e7465726e616c2d72657175657374732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/matthewbdaly/laravel-internal-requests?branch=master)

Make internal requests against your Laravel application.

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

[](#installation)

```
composer require matthewbdaly/laravel-internal-requests

```

What do I want this for?
------------------------

[](#what-do-i-want-this-for)

I've used this approach for a mobile app that had offline functionality. Every time it made a change to some data, it needed to be able to store the changes locally. Then, when the app was online again, it needed to send the changes up in a batch so that they could be synced. I created a sync endpoint that used something like this to loop through every request in the batch and process it all in one go. If one failed, I could then catch the exception and persist the unsynced changes in a table in the database so that they could be resolved later without losing the data.

I honestly can't think of any other situation where you'd want to use this approach, but someone else may.

Usage
-----

[](#usage)

Type-hint the interface `Matthewbdaly\LaravelInternalRequests\Contracts\Services\MakesInternalRequests` to retrieve the internal request service. Then use it as follows:

```
$service->request('POST', '/api/resource', ['content' => 'blah']);
```

Any one request accepts three arguments:

- The HTTP verb to use
- The route to hit
- The payload (optional)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

2791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a596e5052494181ddc20aedefbebef191cc81008e320df098608c54a1dea7350?d=identicon)[matthewbdaly](/maintainers/matthewbdaly)

---

Top Contributors

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

---

Tags

laravellaravel-5-packagephplaravelinternalrequests

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/matthewbdaly-laravel-internal-requests/health.svg)

```
[![Health](https://phpackages.com/badges/matthewbdaly-laravel-internal-requests/health.svg)](https://phpackages.com/packages/matthewbdaly-laravel-internal-requests)
```

###  Alternatives

[tomschlick/request-migrations

HTTP Request Migrations

1844.5k](/packages/tomschlick-request-migrations)[palanik/lumen-cors

Cross-origin resource sharing (CORS) middleware for Lumen micro-framework.

101237.4k](/packages/palanik-lumen-cors)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[open-southeners/laravel-dto

Integrate data transfer objects into Laravel, the easiest way

101.9k](/packages/open-southeners-laravel-dto)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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