Download the PHP package fetaciik/laravel-commands-no-nova without Composer

On this page you can find all versions of the php package fetaciik/laravel-commands-no-nova. 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-commands-no-nova

Laravel Commands

Laravel package for better artisan commands for making Model etc.

Installation

Use this command to publish config.

You can find config in config folder as shown below.

You can configure package commands here

Usage

Make command

This command will run all php artisan commands listed below.

Run command with name parameter at the end. Name parameter is your Model name. (example: User)

After running this command it will ask you if you want to make custom configuration.

You can choose between yes and no.

If you choose no (default) it will run all commands. Note: Make sure you have set your config file.

If you choose yes it will ask you which commands should run (Default being yes). (Example shown below)

Note: if you make a custom configuration while running command it will ignore commands set false in config file.

Model command

This command will create base Model with preset methods.

It is configurable by these configs.

Run this command using

Nova resource command

This command will create base Nova resource with preset methods.

It is configurable by these configs.

Run this command using

Migration command

This command will create base Migration with preset columns.

It is configurable by these configs.

Run this command using

Observer command

This command will create base Observer with preset functions and Events.

Run this command using

Events command

This command will create base Events with preset construct, function and classes.

Run this command using

Listeners command

This command will create base Listener jobs.

Run this command using

Api controller command

This command will create base api Controller with preset functions, responses and validation. It will also create base Model Resource and include it in Controller.

Run this command using

Utils

Functions used in commands and for your project are documented here.

Helpers

Include this util in your file using

Create directory

Helpers::createDir() function is used to create directory in your project.

It requires directory path parameter (string) and optional second parameter with chmod rule.

This function starts at app folder.

Create and/or open file

Helpers::createFile() function is used to create file and/or open file in your project.

It requires path of file, name and extension parameter (string) and optional second parameter is mode (string) Example: 'w' / 'r'.

This function starts at app folder.

Camel Case converter

Helpers::camelCaseConvert() function is used to convert string

It requires string parameter to convert.

Second parameter is separator (string) (default: '_'). Optional parameter.

Third parameter is lower (bool) (default: false). Optional parameter. Changes if words should start with lower case.

Example:

Validator

Validator used by default in this package. It works by chaining functions and getting response. Response is generated by wamesk/laravel-api-response package functions. To better understand how response works checkout documentation for response package here

Validate function

This function is final function. Always last. It requires data and rules for validation. Documentation for rules click here

Usage example:

In case of validation error it will return

Code function

This function is add internal code in response. You can pass second parameter that changes prefix for message translation.

Usage example:

In case of validation error it will return

Status Code function

This function doesn't change response visually but changes status code of response. Default status code is 400 (Bad Request). If you want to chain all functions it can look like this. Status code is always integer.


All versions of laravel-commands-no-nova with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2
laravel/framework Version ^9.0
wamesk/laravel-api-response Version ^1.0
wamesk/utils Version ^1.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 fetaciik/laravel-commands-no-nova contains the following files

Loading the files please wait ....