PHPackages                             roniestein/quicktools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. roniestein/quicktools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

roniestein/quicktools
=====================

A set of functions to bootstrap a laravel project with commands enhanced for production speed.

0116[3 issues](https://github.com/roni-estein/quicktools/issues)PHP

Since May 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/roni-estein/quicktools)[ Packagist](https://packagist.org/packages/roniestein/quicktools)[ RSS](/packages/roniestein-quicktools/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
------------

[](#introduction)

Quicktools's only job is to help you rapidly write and deploy tests to your [Laravel Application](https://laravel.com) while using PHPStorm. It's main purpose is to makw it easier start up a project without worrying about too many advanced configurations or Testing Add-ons. Also It adds some speed conveniences buy opening up each file you generate so you don't have to manually sync folders. And it updates all built in views to use tailwind instead of bootstrap.

//TODO:ADD AN IMAGE

Installation
------------

[](#installation)

To install Quicktools, require it via Composer:

```
composer require roniestein/quicktools

```

Once Composer is done, run the following command NOTE: THIS IS A DESTRUCTIVE COMMAND!!:

```
php artisan preset quicktools

```

This will,

- add a .gitignore
- clean your package.json and add a number of useful packages
- replace your composer.json with some handy packages
- setup phpunit.xml for rapid testing, and also update your tests to use the quictools classes
- add a new example unit test
- add a series of common rapid development commands
- initialize tailwind
- remove old public css and js
- add new app.js, bootstrap.js and app.css
- use postcss-preset-env app.css example
- run composer install
- run composer update
- run yarn install
- run yarn run development to test your system is configured
- add new blade files with tailwind
- scaffold authentication
- open the site

List of files overwritten or added
----------------------------------

[](#list-of-files-overwritten-or-added)

- package.json
- composer.json
- composer.lock
- webpack.mix.js
- resources/sass/\*\*
- resources/css/tailwind-config.js
- resources/css/app.css
- resources/js/app.js
- resources/views/welcome.blade.php
- resources/views/home.blade.php
- resources/views/auth/login.blade.php
- resources/views/auth/register.blade.php
- resources/views/auth/verify.blade.php
- resources/views/auth/passwords/email.blade.php
- resources/views/auth/passwords/reset.blade.php
- resources/views/auth/passwords/reset.blade.php
- resources/views/layouts/partials/\_nav.blade.php
- resources/views/layouts/app.blade.php
- resources/views/layouts/app-with-nav.blade.php
- resources/views/layouts/app-with-nav-single-screen.blade.php
- resources/views/layouts/app-without-nav.blade.php
- tests/TestCase.php
- tests/DomainTestCase.php
- tests/Assistant/ObjectFactory.php
- app/Http/Controllers/Controller.php

PHPStorm Shell Commands for MacOS Mojave
----------------------------------------

[](#phpstorm-shell-commands-for-macos-mojave)

On MacOS, Add the following to your aliases file, to give you a quick leg up on running commands

```
#HELP
alias list='listFunction(){

	c
	echo "Laravel Helpers List"
	echo "--------------------"
	echo "NOTE: use directory/class for namespaced files"
	echo ""
	echo "TESTING"
	echo "ft  =>  Feature Test"
	echo "ut  =>  Unit Test"
	echo ""
	echo "SEEDING"
	echo "ts  =>  Test Seeder (not the same as a regular db seeder)"
	echo "rs  =>  Regular App Seeder"
	echo ""
	echo "TDD"
	echo "fmm =>  Make a (namespaced: optional) Model with a migration and a factory"
	echo "pc  =>  Plain Controller"
	echo "rc  =>  Resourcefull Controller"
	echo "pm  =>  Plain Model (Model with migration comming for now mn)"
	echo "fr  =>  Form Request"
	echo "mf  =>  Model Factory"
	echo ""
	echo "REGULAR DEVELOPMENT"
	echo "nc  =>  New Console Command"
	echo "pe  =>  Event"
	echo "pl  =>  Listener"
	echo "px  =>  Exception"
	echo "mw  =>  Middleware"
	echo "sp  =>  Service Provider"
	echo "pr  =>  Rule"
	echo ""
	echo "MIGRATIONS"
	echo "mn  =>  New Migration, jsut the name of the table create__table"
	echo "mp  =>  Plain Migration, mp add_something_to_posts posts"
	echo ""
	echo "OBSCURE DEVELOPMENT"
	echo "nv  =>  New View File {path/to/name or path.name or name.blade.php}"
	echo "nn  =>  New Notification"
	echo "nm  =>  New Mailable"
	# echo "nmm =>  New Markdown Mailable"
	echo ""
	echo "VUE"
	echo "--------------------"
	echo "vc  =>  Vue Component In components Directory (make into proper stub later)"
	echo ""

unset -f listFunction
}; listFunction'

#VUE

#LARAVEL-VUE
alias vc='{ f=$(cat -); touch resources/assets/js/components/${f}.vue; pstorm resources/assets/js/components/${f}.vue;}
