Skip to content

Latest commit

 

History

History
81 lines (65 loc) · 2.1 KB

README.md

File metadata and controls

81 lines (65 loc) · 2.1 KB

Partisan - Use Artisan everywhere

Artisan command line interface wrapper for the Laravel PHP framework

What it does

Partisan enables the use of the Artisan command line interface from anywhere in your Laravel project directory.

Features

  • Use the Artisan CLI anywhere in your Laravel project Directory.
  • Automates creation of new Laravel projects.
  • Automates installation of composer for Laravel 4 projects.
  • Simplifies running the PHP built-in development server for your Laravel project.

Without Partisan

When using Artisan you find yourself continually running into the problem of having to do extra typing when you're working directory is not in the root of your current project directory.

# Oh no I'm not in the project root.
$ pwd
/home/me/laravelproject/application/models
# Arghh, now I have to do this to use artisan.
$ cd ../../
$ ./artisan

With Partisan

You just type artisan from anywhere in your project and Partisan will automatically find and the Artisan binary that belongs to your project and delegate your request to it as if you had called it directly.

Installation

  1. Clone partisan into ~/.partisan

    $ git clone git://github.com/etherealite/partisan.git ~/.partisan
  2. Add Partisan to your $PATH to make it available when you call if from the shell.

    $ echo 'export PATH="$HOME/.partisan/bin:$PATH"' >> ~/.profile
  3. Restart your shell..

    $ exec $SHELL -l
  4. Done.

Usaeg

After installing Partisan you need to tell it where your projects

# You can do this from any working directory on your system
$ artisan --add ~/path/to/my_project
new project /home/me/path/to/my_project has been added to Partisan

Now i can delve into a subdirectory of my project and still be able to use artisan

cd ~/path/to/my_project/application/models
$ artisan

That's it!

Requirements

  • Laravel >= 3.x
  • Unix like operating system

Feedback

Any feedback is appreciated.

  • IRC #laravel on irc.freenode.net my nick is etherealite
  • Laravel forums user name: etherealite