{"id":27209569,"url":"https://github.com/refkinscallv/fvss","last_synced_at":"2025-04-10T00:57:28.502Z","repository":{"id":217017298,"uuid":"742939466","full_name":"refkinscallv/FVSS","owner":"refkinscallv","description":"PHP Form Validation Server-Side","archived":false,"fork":false,"pushed_at":"2024-05-28T21:03:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:57:22.932Z","etag":null,"topics":["form-validation","php","php-library","request-validator","validation-library","validation-tool"],"latest_commit_sha":null,"homepage":"","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/refkinscallv.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-13T20:20:29.000Z","updated_at":"2024-07-13T15:10:27.000Z","dependencies_parsed_at":"2024-01-15T16:10:31.144Z","dependency_job_id":"9113df3e-de4f-4fcb-aa3c-0ce5392125e2","html_url":"https://github.com/refkinscallv/FVSS","commit_stats":null,"previous_names":["refkinscallv/fvss"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refkinscallv%2FFVSS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refkinscallv%2FFVSS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refkinscallv%2FFVSS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refkinscallv%2FFVSS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refkinscallv","download_url":"https://codeload.github.com/refkinscallv/FVSS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137973,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","php","php-library","request-validator","validation-library","validation-tool"],"created_at":"2025-04-10T00:57:27.596Z","updated_at":"2025-04-10T00:57:28.491Z","avatar_url":"https://github.com/refkinscallv.png","language":"PHP","readme":"# FVSS - Form Validation Server-Side for PHP\n\nFVSS (Form Validation Server-Side) is a PHP library designed to streamline and simplify the process of server-side form validation. It offers a comprehensive set of validation functions catering to common input data types found in web forms. FVSS ensures that the data submitted by users adheres to predefined criteria, enhancing the security and reliability of form submissions.\n\n## Features\n\n- **Validation Types:**\n  - `alphanum` (Alphabet \u0026 Numeric Format)\n  - `alpha` (Alphabet Format)\n  - `num` (Numeric Format)\n  - `date` (Date Format)\n  - `datetime` (Date \u0026 Time Format)\n  - `time` (Time Format)\n  - `email` (Email Format)\n  - `url` (URL Format)\n  - `domain` (Domain Format)\n  - `ip` (IP Format)\n  \n- **Additional Parameters:**\n  - `space`: Allowing or disallowing spaces in the values.\n  - `length`: Specifying the minimum length for certain types of validation.\n  - `punct`: Allowing or disallowing punctuation marks in the values.\n\n## Installation\n\nInstall FVSS using Composer:\n\n```bash\ncomposer require refkinscallv/fvss\n```\n\n## Usage Example\n\n```php\n\u003c?php\n\n/**\n * Preparation\n */\n\n// Import FVSS classes into the global namespace\nuse CG\\FVSS\\Fvss;\n\n// Load composer autoloader\nrequire \"vendor/autoload.php\";\n\n/**\n * How To Use\n */\n\n$fvss = new Fvss(); // or $fvss = new \\CG\\FVSS\\Fvss();\n\n// Example of a request for validation\n$req = [\n    [\n        \"value\"   =\u003e \"Jhon Doe\",\n        \"label\"   =\u003e \"Name\",\n        \"type\"    =\u003e \"alpha\",\n        \"length\"  =\u003e false,\n        \"space\"   =\u003e true,\n        \"punct\"   =\u003e false,\n    ], [\n        \"value\"   =\u003e \"0888888888\",\n        \"label\"   =\u003e \"Phone Number\",\n        \"type\"    =\u003e \"num\",\n        \"length\"  =\u003e 10, // minimum length\n        \"space\"   =\u003e false,\n        \"punct\"   =\u003e false,\n    ], [\n        \"value\"   =\u003e \"2000-02-09\",\n        \"label\"   =\u003e \"Date of Birth\",\n        \"type\"    =\u003e \"date\",\n        \"length\"  =\u003e false,\n        \"space\"   =\u003e false,\n        \"punct\"   =\u003e false,\n    ], [\n        \"value\"   =\u003e \"mail@mail.com\",\n        \"label\"   =\u003e \"Email\",\n        \"type\"    =\u003e \"email\",\n        \"length\"  =\u003e false,\n        \"space\"   =\u003e false,\n        \"punct\"   =\u003e false,\n    ], [\n        \"value\"   =\u003e \"https://www.facebook.com\",\n        \"label\"   =\u003e \"Social Media URL\",\n        \"type\"    =\u003e \"url\",\n        \"length\"  =\u003e false,\n        \"space\"   =\u003e false,\n        \"punct\"   =\u003e false,\n    ]\n];\n\n// Validation process\n$validate = $fvss-\u003evalidate($req);\n\n// Output of the validation process is a boolean: true or false\n// If the output is false, then the $validate-\u003emessage object variable will have the value of the error message\nif ($validate-\u003estatus) {\n    echo \"So far so good\";\n} else {\n    echo $validate-\u003emessage;\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefkinscallv%2Ffvss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefkinscallv%2Ffvss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefkinscallv%2Ffvss/lists"}