PHPackages                             headerx/laravel-legacy-loader - 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. headerx/laravel-legacy-loader

ActiveLibrary

headerx/laravel-legacy-loader
=============================

catch-all routing for use of vanilla php scripts in your laravel app.

v1.0.0(4y ago)41.0k1MITPHP

Since Jun 27Pushed 2y agoCompare

[ Source](https://github.com/headerx/laravel-legacy-loader)[ Packagist](https://packagist.org/packages/headerx/laravel-legacy-loader)[ Docs](https://github.com/headerx/laravel-legacy-loader)[ GitHub Sponsors](https://github.com/headerx)[ RSS](/packages/headerx-laravel-legacy-loader/feed)WikiDiscussions 1.x Synced today

READMEChangelog (8)Dependencies (9)Versions (12)Used By (0)

Load legacy php scripts inside your laravel app.
================================================

[](#load-legacy-php-scripts-inside-your-laravel-app)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cde2938e388c344896dde0dc7fb287e8067232991c45251d3bbf9c48d4167ec9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686561646572782f6c61726176656c2d6c65676163792d6c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/headerx/laravel-legacy-loader)[![GitHub Tests Action Status](https://camo.githubusercontent.com/abf151bb009a3cb56ea234c827e26b8508bbf99b4ce1af9d01cf8ddad615d5ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f686561646572782f6c61726176656c2d6c65676163792d6c6f616465722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/headerx/laravel-legacy-loader/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/7a71710a2fbe1bee02b9b958e2c66600768070d5816f6f36226687787470f9ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f686561646572782f6c61726176656c2d6c65676163792d6c6f616465722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/headerx/laravel-legacy-loader/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fe1e53f8ed4ae42cbfa65be7f250227dc11e08ac2a7efad5fe5c458d39e284c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686561646572782f6c61726176656c2d6c65676163792d6c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/headerx/laravel-legacy-loader)

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

[](#installation)

You can install the package via composer:

```
composer require headerx/laravel-legacy-loader
```

You can publish the config file with:

```
php artisan vendor:publish --provider="HeaderX\LegacyLoader\LegacyLoaderServiceProvider" --tag="legacy-loader-config"
```

This is the contents of the published config file:

```
return [
    /**
    * Route prefix under which the php files are to be
    * accessed. Additional routes are not needed,
    * files will be accessible via thier path.
    */
    'route_prefix' => env('LEGACY_ROUTE_PREFIX', 'legacy'),
    /**
     * Path to legacy php scripts
     * relative to base_path()
     */
    'file_path' => env('LEGACY_FILE_PATH', 'resources/legacy'),
    /**
     * If your legacy app has its own
     * authentication you will need
     * to publish config and add
     * your own middleware.
     */
    'middleware' => [
        'web',
        // 'auth',
    ],
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [inmanturbo](https://github.com/inmanturbo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~189 days

Total

9

Last Release

1003d ago

Major Versions

v0.15 → v1.0.02022-02-23

v0.2 → 1.x-dev2023-08-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/0261babef618b8fb3bfcea84376ed5e71e7169586eb8de63a6550c2e7ea653a6?d=identicon)[inmanturbo](/maintainers/inmanturbo)

---

Top Contributors

[![inmanturbo](https://avatars.githubusercontent.com/u/47095624?v=4)](https://github.com/inmanturbo "inmanturbo (35 commits)")

---

Tags

laravelheaderxlaravel-legacy-loader

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/headerx-laravel-legacy-loader/health.svg)

```
[![Health](https://phpackages.com/badges/headerx-laravel-legacy-loader/health.svg)](https://phpackages.com/packages/headerx-laravel-legacy-loader)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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