{"id":46310521,"url":"https://github.com/azeemhassni/envalid","last_synced_at":"2026-03-04T13:07:21.780Z","repository":{"id":55541949,"uuid":"86347524","full_name":"azeemhassni/envalid","owner":"azeemhassni","description":"Envalid is a framework agnostic and fluent server side form validation package for PHP","archived":false,"fork":false,"pushed_at":"2023-05-04T13:25:00.000Z","size":380,"stargazers_count":24,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-18T00:40:19.324Z","etag":null,"topics":["form-validation","laravel-like","php","serverside","validation"],"latest_commit_sha":null,"homepage":"http://envalid.azeemhassni.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azeemhassni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-27T14:47:35.000Z","updated_at":"2024-02-20T18:59:27.000Z","dependencies_parsed_at":"2023-01-21T21:21:17.340Z","dependency_job_id":null,"html_url":"https://github.com/azeemhassni/envalid","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/azeemhassni/envalid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeemhassni%2Fenvalid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeemhassni%2Fenvalid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeemhassni%2Fenvalid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeemhassni%2Fenvalid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azeemhassni","download_url":"https://codeload.github.com/azeemhassni/envalid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeemhassni%2Fenvalid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30081253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T12:28:08.313Z","status":"ssl_error","status_checked_at":"2026-03-04T12:27:28.210Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form-validation","laravel-like","php","serverside","validation"],"created_at":"2026-03-04T13:07:21.170Z","updated_at":"2026-03-04T13:07:21.768Z","avatar_url":"https://github.com/azeemhassni.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Envalid\n**Envalid** is a framework agnostic and fluent server side form validation package for PHP\n\n[![Build Status](https://travis-ci.org/azeemhassni/envalid.svg?branch=master\u0026version=0.0.1)](https://travis-ci.org/azeemhassni/envalid)\n\n# [Documentation](http://envalid.azeemhassni.com/docs.html)\n\n# Installation\nEnvalid can be installed via `composer` just execute the following command\nin your project root\n\n```composer require azi/envalid```\n\nOr add the following in your composer.json file and run `composer install`\n\n```\n\"require\": {\n    \"azi/envalid\": \"^1.0\"\n}\n```\n\n# Usage\nUsing envalid in your project is super simple, here is an example\n```php\n$validator = new azi\\Validator();\n$validator-\u003evalidate($_POST, [\n    'username'         =\u003e 'required',\n    'password'         =\u003e 'required|password:strong',\n    'confirm_password' =\u003e 'required|same:password'\n]);\n```\nIf you've files to validate you will need to merge `$_POST|$_GET` and with `$_FILES` just like the following\n```php\n$validator = new azi\\Validator();\n$validator-\u003evalidate(array_merge($_POST, $_FILES), [\n    'profile_picture' =\u003e 'file:image'\n]);\n```\n\n# Available Rules\n- required\n- email \n- password `Accepts password strength like password:strong|medium|normal (default noraml)` \n- number\n- file `Accepts file type currently supported formats: image,video,doc`\n- min\n- max\n- length\n- array\n- boolean\n- ip\n- same\n- alpha\n- alnum\n\n# Contributions\nThis repository is maintained by \n[@azeemhassni](https://github.com/azeemhassni)\n \n If you can contribute I'd love to merge your PR and your name will be mentioned \n in the release notes and contributors list.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeemhassni%2Fenvalid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazeemhassni%2Fenvalid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeemhassni%2Fenvalid/lists"}