Download the PHP package haikara/verifier without Composer

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

knp/verifier

簡潔なシグネチャで条件を指定できるバリデーションライブラリ。

インストール

基本的な使い方

フィルタリング済みの値の取得

IntegerDoubleNumberによる検証は内部で型変換がおこなわれる。
型変換された後の値を取得したい場合、下記のように記述する。

特定の値を許容する

文字列の検証条件を指定しつつ、空文字も許可する例。

整数値の検証条件を指定しつつ、nullも許可する例。

alnumlengthなどの条件は記述した順に判定されるが、
allowEmptyStringnullableは各種条件より優先して判定される。

PHP // メールアドレス、.co.jpのみ許可 Rules::string()->email() ->add( 'email_domain_cojp', // 検証条件名。無理矢理にでも何か指定する。 fn ($value) => str_ends_with($value, '.co.jp') // 検証関数。検証する値を受け取り、bool値を返すことが必要。 );



## エラーメッセージ

検証項目にエラーメッセージを登録することができる。

## 文字列の検証

### 文字数

### 文字列検索

### 文字種

文字列に含まれる文字種の制限。

### メールアドレス

メールアドレス形式の文字列かどうかの検証。

### UUID

UUID形式の文字列かどうかの検証。

### 正規表現

## 数値の検証

- `Rules::integer`
- `Rules::float`
- `Rules::number`

#### 共通の使い方

#### Rules::integer()

## ファイル名

Rules::string()の拡張なので、以下のようにも記述できる

All versions of verifier with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0 <8.4.0
ext-ctype Version *
ext-mbstring 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 haikara/verifier contains the following files

Loading the files please wait ....