All Projects → whoan → laravel-bash-helpers

whoan / laravel-bash-helpers

Licence: MIT license
Daily tasks made easier

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to laravel-bash-helpers

php-framework-benchmark
php framework benchmark (include laravel、symfony、silex、lumen、slim、yii2、tastphp etc)
Stars: ✭ 17 (-15%)
Mutual labels:  lumen
lumen-file-manager
File manager module for the Lumen PHP framework.
Stars: ✭ 40 (+100%)
Mutual labels:  lumen
telegram-observer-bot
Telegram Observer Bot automates a few routine commands to make managing groups easier.
Stars: ✭ 34 (+70%)
Mutual labels:  lumen
jacky
🐄 HTTP JSON API Client for Laravel & Lumen
Stars: ✭ 17 (-15%)
Mutual labels:  lumen
baserepo
Base repository
Stars: ✭ 71 (+255%)
Mutual labels:  lumen
lumen-api-starter
A starter project to develop API with Lumen 8.*
Stars: ✭ 42 (+110%)
Mutual labels:  lumen
lumen-newrelic
New Relic instrumentation for the Lumen framework
Stars: ✭ 26 (+30%)
Mutual labels:  lumen
response
Response HTTP package for Simfony, Laravel, Lumen and PHP 7 with standard REST API
Stars: ✭ 14 (-30%)
Mutual labels:  lumen
Laravel-Auto-Hard-Deleter
Laravel and Lumen Auto Hard Deleter
Stars: ✭ 34 (+70%)
Mutual labels:  lumen
lumen-boilerplate
Opinionated way to start a new Lumen project.
Stars: ✭ 20 (+0%)
Mutual labels:  lumen
PHP-Frameworks-Bench
Popular PHP Frameworks Benchmark.
Stars: ✭ 28 (+40%)
Mutual labels:  lumen
alipay
laravel lumen alipay 最简单,最安全,无验签,支付宝转账支付
Stars: ✭ 18 (-10%)
Mutual labels:  lumen
laravel-web-logs
View Laravel File-Based Logs In Web
Stars: ✭ 162 (+710%)
Mutual labels:  lumen
laravel-lumen-mysql-encryption
Database fields encryption in laravel and lumen for mysql databases with native search.
Stars: ✭ 20 (+0%)
Mutual labels:  lumen
microservice-remote-models
A Lumen package to provide a familiar model paradigm for distributed data.
Stars: ✭ 22 (+10%)
Mutual labels:  lumen
Lumen-Doctrine-DDD-Example
Domain Driven Design Application Example, built with Lumen 5.3 and Doctrine.
Stars: ✭ 72 (+260%)
Mutual labels:  lumen
sns-laravel
A library to enable sending and receiving broadcasts to and from SNS topics in Laravel and Lumen.
Stars: ✭ 23 (+15%)
Mutual labels:  lumen
learn-english
📚 Vue + Element-UI + Lumen 开发的背单词应用
Stars: ✭ 53 (+165%)
Mutual labels:  lumen
schema-builder
Laravel/Lumen schema builder & migration generator
Stars: ✭ 51 (+155%)
Mutual labels:  lumen
rentnride
Rent&Ride is an open source for Car Rental script. Travel to any of your favourite places by availing the services in the Rent & Ride application. Book cars for rental by making use of the flexibility to choose the car of your interest.
Stars: ✭ 37 (+85%)
Mutual labels:  lumen

Laravel/Lumen helpers for Bash

Useful commands for your Laravel/Lumen development.

Commands

artisan: call the command wherever you are. It's like doing: php $project_root/artisan

linit: set directory permissions and create your .env file if necessary. Useful when you start a new project

loot: go to the root of your laravel project (where your .env stays)

phpunit: call the command wherever you are. It's like doing: cd $project_root && vendor/bin/phpunit

phpspec: call the command wherever you are. It's like doing: cd $project_root && vendor/bin/phpspec

tinker: call the command wherever you are. It's like doing: php $project_root/artisan tinker

serve: call the command wherever you are. It's like doing: php $project_root/artisan serve

gulp: call the command wherever you are, and you don't need it installed globally anymore

homestead: call the command wherever you are. It's like doing: cd ~/Homestead && vagrant

Mysql commands

You need to set the following variables beforehand in your .env file:

  • DB_HOST (optional)
  • DB_DATABASE
  • DB_USERNAME
  • DB_PASSWORD

createdb: create the database $DB_DATABASE, automatically.

godb: open a mysql console ready to execute commands

query: execute a query from your shell. eg: query "show tables"

Make multiple migrations, seeders, models and controllers at once

mmigrations  # usage: mmigrations table1 [table2 [...]]
mseeders     # usage: mseeders Seeder1 [Seeder2 [...]]
mmodels      # usage: mmodels Model1 [Model2 [...]]
mcontrollers # usage: mcontrollers Controller1 [Controller2 [...]]

# You can also use options:
mcontrollers --resource Controller1 [Controller2 [...]]
# And these sentences are the same (suffix appended if not provided):
mcontrollers aController
mcontrollers a

Others

These were extracted from laravel/homestead:

..  # cd ..
... # cd ../..
h   # cd ~
c   # clear
art # artisan

Installation

You may source the file in your .bashrc (or in your current terminal to give it a try):

git clone https://github.com/whoan/laravel-bash-helpers.git
_path=$PWD/laravel-bash-helpers/laravel-bash-helpers.sh
echo "test -f \"$_path\"  && source \"$_path\"" >> ~/.bashrc  # install it in your .bashrc
source "$_path"  # make it available to the current terminal

Contact

Mail

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].