mrofi/laravel-shared-hosting-package

Laravel Shared Hosting Package
757
Install
composer require mrofi/laravel-shared-hosting-package
License:MIT
Last Updated:Oct 7, 2016
Links: GitHub  ·  Packagist
Maintainer: mrofi

Laravel Shared Host Package

This simple package will help you to deploy laravel framework in shared hosting

Strong Warning

It's not recommended to deploy your app in share hosting, unless you know what you do.

How It Works

we create a index.php to base directory, so you can access your app without /public and make overriding how laravel do with public assets. Make sure you use asset() helper to include your asset files in app.

How To

    composer require mrofi/laravel-shared-hosting-package "dev-master"

add this service provider in your config/app.php file :

    ...
    Mrofi\LaravelSharedHostingPackage\LaravelSharedHostingPackageServiceProvider::class,
    ...

then, do some magic :

    php artisan vendor:publish --provider="Mrofi\LaravelSharedHostingPackage\LaravelSharedHostingPackageServiceProvider"

Security

Please read how to configure server to make your server secure. Since you move your index.php to base path directory you have to hide other folders and credentails file, like : file .env, folder app, migrations, resources, etc from direct accessing by user browser.

This pacakage includes .htaccess file that works for apache web server only. If you use other servers, ie : nginx. you can googling to protects your files. https://www.google.co.id/search?q=nginx+deny+all+files+except+index.php

Related Packages

doctrine/dbal

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

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660