PatrickRose / laravel-shared-host by PatrickRose

An easy way for people on shared hosting without command line access to use laravel. It is likely insecure because of it
32
5
4
Package Data
Maintainer Username: PatrickRose
Maintainer Contact: pjr0911025@googlemail.com (Patrick Rose)
Package Create Date: 2013-09-20
Package Last Update: 2013-10-19
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 03:07:32
Package Statistics
Total Downloads: 32
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 4
Total Forks: 3
Total Open Issues: 0

laravel-shared-host

An easy way for you to use Laravel 4 on shared hosting, without command line access

Installation

Like all good things, this package is installed using Composer. Just add the following to your composer.json

"require": {
    "patrick-rose/laravel-shared-host": "dev-master"
}

Then just run composer update and Composer will do the heavy lifting.

Then you just need to tell Laravel to load the files. Go into app/config/app.php and add this to your provider's array:

providers => array(
    'PatrickRose\LaravelSharedHost\LaravelSharedHostServiceProvider',
);

Usage

When you get around to deploying your application, upload everything (including your vendor folder). Now, go into /vendor/patrick-rose/laravel-shared-host/src/config/config.php, and set activated to true. You'll now have a few routes to go to, but the important one is:

http://[yoursite]/patrickrose-sharedhost-index

You'll be asked for a password, which is your application key by default. Then you can run the commands that you need to run.

Note that currently, if something goes wrong an error message is thrown.

When you're finished, REMOVE ACCESS TO THIS PAGE. Although no user input is needed, it's probably wise to not let this be open. Removing access is as simple as setting activated to false