Download the PHP package mrpunyapal/laravel-extended-commands without Composer

On this page you can find all versions of the php package mrpunyapal/laravel-extended-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 laravel-extended-commands

This package has some commands which are not available in laravel.

Latest Version on Packagist GitHub Tests Action Status Total Downloads Laravel Version Compatibility PHP Version Compatibility Laravel Boost Skill

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Laravel Boost

This package ships a Laravel Boost skill for its generators.

In a Laravel application that has laravel/boost installed, add this package and then run one of the following commands to discover or refresh the packaged skill:

Boost can then install the laravel-extended-commands-development skill for tasks involving this package's custom Artisan generators.

Usage

Make Builder

Make Builder with Model

Make Collection

Create a new Eloquent custom collection class. By default the class is generated into the App\Models\Collections namespace and extends Illuminate\Database\Eloquent\Collection.

Create a collection with a model generic PHPDoc (adds @template and @extends in the generated class):

When generating a model you can also scaffold a collection for it and inject a newCollection() method into the model using the --collection flag:

This will generate App\Models\Collections\{Name}Collection and add a newCollection(array $models = []) method to the model which returns the new collection instance.

Make Model with Builder

Make Action

Create a new action class. By default the class is generated into the App\Actions namespace and contains a handle() method.

Create an invokable action (generates an __invoke method):

Force overwrite an existing action file:

Make Concern

Create a new concern (trait). By default the trait is generated into the App\\Concerns namespace.

Force overwrite an existing concern file:

Make Contract

Create a new contract (interface). By default the interface is generated into the App\\Contracts namespace.

Force overwrite an existing contract file:

Make Service

Create a new service class. By default the class is generated into the App\Services namespace.

Force overwrite an existing service file:

Make Facade

Create a new facade class. By default the class is generated into the App\Facades namespace and extends Illuminate\Support\Facades\Facade.

The command will automatically generate a snake_case accessor based on the facade name. For example:

This generates App\Facades\FileUpload with accessor file_upload.

Force overwrite an existing facade file:

If the name argument is not provided, you will be prompted to enter it:

You can also create facades with namespaces:

This generates App\Facades\Payment\Stripe with accessor stripe.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-extended-commands with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4|^8.5
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.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 mrpunyapal/laravel-extended-commands contains the following files

Loading the files please wait ...