Download the PHP package rsthn/rose-ext-shield without Composer

On this page you can find all versions of the php package rsthn/rose-ext-shield. 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 rose-ext-shield

Shield Validation Extension

Shield provides a set of functions to validate data in a very robust way.

Installation

Functions

(shield:method-required \)

Ensures the request was made using the specified method(s) or fails with 405/@messages.method_not_allowed.

(shield:body-required [false|true|content-type...])

Ensures the request's content-type is one of the specified types. Fails with 422/@messages.request_body_missing if there is no request body, or with 422/@messages.invalid_content_type if the content-type is not valid. If no content type is provided then it is assumed to be application/json. Use value true to allow any content type.

(shield:body-min-size \)

Ensures the request's body is at least the specified number of bytes. Fails with 422/@messages.request_body_too_small if not.

(shield:body-max-size \)

Ensures the request's body does not exceed the specified number of bytes. Fails with 422/@messages.request_body_too_large when so.

(shield:field \ [rules...])

Returns a field descriptor.

(shield:type \ \)

Registers a type validation descriptor to be used by name in the type rules.

(shield:begin)

Begins quiet validation mode. All validation errors will be accumulated, and should later be retrieved by calling shield:end, this is useful to batch multiple validation blocks at once.

(shield:end [automatic=true])

Ends quiet validation mode, if there are any errors and automatic is set to true (default), then Wind::R_VALIDATION_ERROR will be thrown, otherwise, the error map will just be returned.

(shield:validate [output-var] \)

Validates the fields in the gateway request. Any error will be reported, and the validated object will be available in the global context or in the output variable (if provided) when validation succeeds.
NOTE: This is a legacy function, use the replacement shield:validate-data when possible.

(shield:model \)

Creates and returns a new validation model to be re-used later with shield:validate-data.

(shield:validate-data \ \ \<model|data-descriptors...>)

Validates the fields in the input data using the specified data rules. If any validation error occurs an exception will be thrown. If the data is successfully validated it will be available in the output variable.


All versions of rose-ext-shield with dependencies

PHP Build Version
Package Version
Requires rsthn/rose-core Version ^5.0.5
rsthn/rose-extension-installer Version *
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 rsthn/rose-ext-shield contains the following files

Loading the files please wait ....