freshwork/console

Freshwork console utilities for your Laravel Development workflow
23 1
Install
composer require freshwork/console
Latest Version:0.1.2
PHP:>=5.3.0
License:MIT
Last Updated:Feb 14, 2015
Links: GitHub  ·  Packagist
Maintainer: gonzunigad

Freshwork Console Utility

Do you work with Laravel & Homestead? That package is for you

Install

You need to install homestead 2.0 before usign this package.

composer global require "laravel/homestead=~2.0"

Now you can install freshwork/console

composer global require freshwork/console

Usage

Configuration
freshwork init # Create your configuration file
#And then...
freshwork edit # Opens your configuration file so you can edit it.

Configuration file:

{
	"projects_folder":"~/code", #Local projects folder
	"ssh_connection_cmd":"ssh vagrant@127.0.0.1 -p 2222", # SSH command to connect to homestead
	"homestead_code_directory":"/home/vagrant/code",# Homestead projects folder
	"homestead_ip":"192.168.10.10", # Ip of homestead VM
	"hosts_file":"/private/etc/hosts"
}
#Run this to check available commands
freshwork
#or
freshwork list
New project

You can install a new laravel project.

freshwork project:new client_name.project_name
freshwork project:new client_name/project_name
Default behavior

From the name 'client_name.project_name' we set default a configuration from your project (you can edit them by the command options).

This will install your project folder to:

  • your/projects/folder/client_name/project_name
  • Nginx site folder: your/projects/folder/client_name/project_name/public

Set your development domain to:

And then, it will install Laravel in the created directory.

# This will set your project domain as other_domain.local instead of project_name.app
freshwork project:new client_name.project_name -d 'other_domain.local'

Run this to check available options

freshwork project:new -h
Serve project
# Just the same as project:new, but doesn't create the directory nor install Laravel
freshwork project:new client_name.project_name

Related Packages

emir/laravel-webartisan

Web artisan allows to run artisan console commands using a browser

885 57
recca0120/terminal

run laravel artisan command in web application

422,266 877
darsain/laravel-console

Browser console for Laravel Framework.

57,250 167
dusterio/laravel-verbose

Package that adds verbosity to Laravel/Lumen built-in console commands

6,292 6
recca0120/laravel-bridge

use laravel eloquent, view, pagination anywhere

466 31