wewowweb / laravel-shared-hosting
Laravel package that simplifies deployment and management of Laravel application on your shared hosting server
Requires
- php: ^7.2
- illuminate/support: ^5.8|^6.0|^7.0
Requires (Dev)
- orchestra/testbench: ^3.8|^4.0|^5.0
- phpunit/phpunit: ^8.0
README
A package that will simplify deployment and management of Laravel application on your shared hosting server.
Why?
As developers, we're used to having a near picture perfect development environment, and we expect the same out of our production server. Sometimes however, you are not in control of deciding on the production environment. May it be cost or features - such as integrated mail servers and graphical user interfaces for managing certain business tasks - can ultimately direct the client toward a cheap shared host, that may not have the bells and whistles you would want.
If your Laravel app will indeed live on such a server, you might want this package to help.
This package is still in active development, so you might want to watch the repository to be notified of future changes.
Installation
You can install the package via composer:
composer require wewowweb/laravel-shared-hosting
Usage
php artisan shared:install
Once the package has been installed, run the command:
php artisan shared:install
shared:install command will allow you to overrride Laravel's default public/index.php
file. The only change is the modification to the autoload and bootstrap functions, so that their path can be loaded from an .env file, which will save you all the instances where manual corrections of that file in development/production environment are necessary.
If you would like to have your autoload and bootstrap path set by .env variables, make sure to create them in the .env file like so:
SHARED_AUTO_LOADER=<your path here> SHARED_BOOTSTRAP=<your path here>
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email gal@wewowweb.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.