Download the PHP package amirhs712/rule-builder without Composer

On this page you can find all versions of the php package amirhs712/rule-builder. 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 rule-builder

Nope

Latest Stable Version Total Downloads License

Nope is a validation rule builder for laravel inspired by Yup for javascript.

With Nope you can generate rules more fluently, I've also copied rules description from laravel official website and hard coded them into Nope, so you can have access to documentations easily.

Some functionalities have been extended for validation rules, for example you can pass Carbon instances to date validation rules like after.

Installation

Require this package with composer using the following command:

Usage

I recommend using nope() global helper for warning-free and complete ide-inspection. Also you can use Amirhs712\RuleBuilder\Nope class instead.

We use get() to get output as an array, alternatively you can use toString() to return the output as a pipe separated string.

Date Rules with Carbon

You can pass a carbon instance to the following date rules: after, afterOrEqual, dateEquals,before, beforeOrEqual

Min / Max Helpers

These methods allow you to set min and / or max arguments manually.

Raw rules

You can use raw(string|array) to add raw string rules or validation objects.

Conditional rules

You can use when method to add rules conditionally.

Laravel constraint builders

in, notIn, dimensions, exists, unique methods support both their relative constraint builders and, their default values.

Templates

You can build and define your own rule templates.

Coming soon!

Undefined methods

Right now there are no limitations for method calls (I could not find a reason to do so), for example you can do

Alternatives

You can check this package as an alternative, I've implemented some ideas from this package and merged them into my own solution.

Feedback

Please feel free to open up an issue, or a Pull Request if you have any suggestions.


All versions of rule-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version >=5.3
illuminate/validation Version >=5.3
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 amirhs712/rule-builder contains the following files

Loading the files please wait ....