Download the PHP package sirmathays/convenient-laravel-commands without Composer

On this page you can find all versions of the php package sirmathays/convenient-laravel-commands. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package convenient-laravel-commands

Total Downloads Latest Stable Version License

This package provides some additional, convenient commands for you to use with your Laravel project.

Installation

Install the package with Composer:

composer require sirmathays/convenient-laravel-commands

Commands

Here's a brief documentation on the make commands the package provides to be used with Artisan.

Commands for creating PHP OOP types

artisan make:class --type[=TYPE] <name>

Valid type options: final, abstract.

artisan make:interface <name>
artisan make:trait <name>

Commands for Model development

Relationship trait

artisan make:relationship --explicit --relation[=RELATION] --model[=MODEL] <name>

Creates a relationship trait to be used with models. The command tries to guess both the relation and the model class from the name argument. Both can be overwritten by providing options for each. By adding the explicit option, parsing will not be used and options for both model and relation must be provided.

Scope class

artisan make:scope --extend <name>

Creates a scope class to be used with models. Defaults to the namespace the project's models exist in (e.g. App\Models\Scopes). When using extend option, the class will also include extend function, used to apply Builder macros to the model the scope is attached to as a global scope.

Commands for creating classes for Spatie's QueryBuilder (if part of the project)

artisan make:query-filter <name>
artisan make:query-sort <name>

Other Commands

Concern trait

artisan make:concern <name>

Creates a concern trait. It's practically a trait that just follows the Laravel naming conventions. Defaults to the root namespace of the project (e.g. App\Concerns).

Contract trait

artisan make:contract <name>

Creates a contract interface. It's practically an interface that just follows the Laravel naming conventions. Defaults to the root namespace of the project (e.g. App\Contracts).

Generator Command class

artisan make:command-gen --explicit --type[=TYPE] --stub[=STUB] <name>

Creates a generator command and a stub. Command parses the type name from the given name argument. E.g. artisan make:command-gen ConcernMakeCommand would set the command name to be make:concern and the stub file to be named concern.stub. This behavior can be overwritten with using the explicit option and/or providing type and stub options respectively.

License

Convenient Laravel Commands is open-sourced software licensed under the MIT license.


All versions of convenient-laravel-commands with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
laravel/framework Version >=6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sirmathays/convenient-laravel-commands contains the following files

Loading the files please wait ....