PHPackages                             yiiy/argus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. yiiy/argus

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

yiiy/argus
==========

Lightweight PHP Data Validator

1.0.0(2y ago)03MITPHPPHP &gt;=7.4

Since Mar 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ayoubezzini/argus)[ Packagist](https://packagist.org/packages/yiiy/argus)[ RSS](/packages/yiiy-argus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Tests](https://github.com/ayoubezzini/argus/actions/workflows/tests.yml/badge.svg)](https://github.com/ayoubezzini/argus/actions/workflows/tests.yaml)[![Total Downloads](https://camo.githubusercontent.com/3e38978003ff2f8fe8a5e218863f9de0615f56539deab38665dad29c568fd179/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969792f61726775732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yiiy/argus)[![License](https://camo.githubusercontent.com/b1a946443c811ef646b9319977c23ac612828d2714140826f35bba10d7cb9c1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61796f7562657a7a696e692f61726775733f7374796c653d666c61742d737175617265)](https://github.com/ayoubezzini/argus/blob/master/LICENCE)

Lightweight PHP Data Validator
==============================

[](#lightweight-php-data-validator)

Argus is a PHP package designed to simplify and streamline data validation tasks in your applications. It offers a comprehensive set of validation rules to ensure the integrity and accuracy of your data.

Features
--------

[](#features)

- **Common Validations:** Perform checks for required fields, email format, string values, numeric values, and length restrictions.
- **Range Validation:** Ensure numeric data falls within a specific range.
- **Customization:** Easily define custom validation rules to meet your specific needs.
- **Error Reporting:** Get clear and informative error messages to identify invalid data points.

Installation
------------

[](#installation)

You can install the package using Composer:

```
composer require yiiy/argus
```

Usage
-----

[](#usage)

The package provides a simple and intuitive API for data validation. Here's a basic example:

```
