Download the PHP package petehouston/xin-artisan without Composer
On this page you can find all versions of the php package petehouston/xin-artisan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petehouston/xin-artisan
More information about petehouston/xin-artisan
Files in petehouston/xin-artisan
Package xin-artisan
Short Description the "xin" command for Laravel artisan.
License MIT
Homepage https://github.com/petehouston/xin-artisan
Informations about the package xin-artisan
Xin for Artisan command
Xin, in Vietnamese, is to "ask for something on demand". Now, you can xin something right into Laravel Artisan console.
Install
Via Composer
Setup
Append this line to $providers
variable on config/app.php
file:
Configuration
You need to add xin config file xin.php
to your project:
Some config variables for use:
browser.bin
: the absolute path to the browser binary you want to use. Default, xin will automatically look up for you.
Command list
Following commands are supported:
- xin:ip: get IP address.
- xin:docs: read Laravel documentation.
- xin:log: play around with log files.
- xin:gist: Share code via public Gist.
- xin:view: create empty Blade view.
Usage
Ask for IP address
Get local IP address:
Get public/external IP address:
Open a Laravel documentation section
List all available Laravel documentation sections:
Open the section on browser:
Xin will use the default system browser to open URL. Key is the value available from "list".
Open documentation in different languages:
Use --locale
option. Currently, only "en" and "vn" are supported. Default is "en".
Play with log files
All logs are stored under storage/logs
directory.
Read log file
The default log file is laravel.log
.
You can read content of different log files by name:
Clean log file content
The log file will be empty.
You can combine clean a custom log file:
Remove all logs
This command will remove all files in storage/logs
directory.
Share code via Gist
This command will share a source file to public Gist. It will response with Gist Id and Gist Url.
For example, if you want to share public/index.php
file:
Note: on Windows, since the path separator is \
, so you need to wrap the filename
with double-quotation mark "
like this:
Create empty Blade view
Wanna create Blade view file from command quickly? Use this:
It will create login.blade.php
at resources/views/admin/auth
, it also does create any directory that doesn't exist in the path.
Apparently, in Linux/Unix/Mac, you can use touch
.
License
The MIT License (MIT). Please see License File for more information.
All versions of xin-artisan with dependencies
illuminate/console Version ~5.1
guzzlehttp/guzzle Version ~6.0
php Version ~5.5|~7.0