Artisan command line interface wrapper for the Laravel PHP framework
Partisan enables the use of the Artisan command line interface from anywhere in your Laravel project directory.
- 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.
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
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.
-
Clone partisan into ~/.partisan
$ git clone git://github.com/etherealite/partisan.git ~/.partisan
-
Add Partisan to your
$PATH
to make it available when you call if from the shell.$ echo 'export PATH="$HOME/.partisan/bin:$PATH"' >> ~/.profile
-
Restart your shell..
$ exec $SHELL -l
-
Done.
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!
- Laravel >= 3.x
- Unix like operating system
Any feedback is appreciated.
- IRC #laravel on irc.freenode.net my nick is etherealite
- Laravel forums user name: etherealite