Download the PHP package saineshmamgain/laravel-setup-helper without Composer

On this page you can find all versions of the php package saineshmamgain/laravel-setup-helper. 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-setup-helper

Laravel Setup Helper

A package to add some extra goodies to your laravel applications.

Setup

Install

composer require saineshmamgain/laravel-setup-helper

Publish the config

php artisan vendor:publish --tag=setup-helper-config

The config has following switches:

override_request_make_command

override_make_job_command

Set to false if you don't want these functionalities.

Run

php artisan setup-helper:install

Run with --force tag to replace previously generated files.

Create a trait

php artisan make:trait FooTrait

Create a contract (interface)

php artisan make:contract FooContract

Create a Request Class

Can be controlled from config

php artisan make:request FooRequest

The request class created by this package extends a BaseRequest class which in turn extends the original FormRequest class.

In this class by default authorize() method returns true.

While writing Form Requests in Laravel, we have to create a class and define rules in it.

for example if you want to write validations for creating a user you will create a UserRequest class

now for editing the user either you will create an EditUserRequest class and define the rules, or you will use the UserRequest class and will write conditions for applying some rules only when it is an edit request.

To make this more smooth this package Provides BaseRequest class.

When installation is complete, the request files created by php artisan make:request command will extend this BaseRequest class.

getMethodRules() To apply rules only on GET requests

postMethodRules() To apply rules only on POST requests

putMethodRules() To apply rules only on PUT requests

patchMethodRules() To apply rules only on PATH requests

deleteMethodRules() To apply rules only on DELETE requests

Contribution

PRs are welcome.


All versions of laravel-setup-helper with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=v6.0.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 saineshmamgain/laravel-setup-helper contains the following files

Loading the files please wait ....