binaryceo/validator

A PHP package for validate inputs and data.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/binaryceo/validator

v1.0.0 2025-10-02 08:59 UTC

This package is auto-updated.

Last update: 2026-01-04 08:42:12 UTC


README

A lightweight PHP package for validate forms data.

Installation

This library uses PSR-4 autoloading. Recommended installation via Composer:

composer require binaryceo/validator

If you are developing the library and want to run tests:

composer install

Usage

require 'vendor/autoload.php';

use BinaryCEO\Component\Validator\Validation;

$validation = new Validation();
if($validation->check('string', 'binaryceo')) {
    echo 'Is string.';
}

Running tests

To run the PHPUnit test suite locally:

composer install
composer test

If you don't want to use Composer, there's a minimal CLI test runner at Tests/ValidationTest.php (but PHPUnit is recommended).

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Send a pull request

License

This project is licensed under the MIT License.
See the LICENSE file for details.