New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

headerx/laravel-legacy-loader

catch-all routing for use of vanilla php scripts in your laravel app.
1,046 4
Install
composer require headerx/laravel-legacy-loader
Latest Version:v1.0.0
Laravel:8 · 9
License:MIT
Last Updated:Aug 12, 2023
Links: GitHub  ·  Packagist
Maintainer: inmanturbo

Load legacy php scripts inside your laravel app.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

headerx/laravel-jetstream-passport

Passport and OAuth2 support for laravel's jetstream starter kit (Livewire)

18,481 30
headerx/laravel-iframes

Easily load routes inside an iframe.

8,783 6
headerx/laravel-adminer-plugins

Plugin helper for use with onecentlin/laravel-adminer

1,267 1
headerx/buku-icons

Installs over 50,000 icons. From https://blade-ui-kit.com/blade-icons

1,346 1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701

Version History

Version Released Laravel License
v1.0.0 ^8.37|^9.0 MIT
v0.15 ^8.37 MIT
v0.14 ^8.37 MIT
v0.13 ^8.37 MIT
v0.12 ^8.37 MIT