{"id":18996054,"url":"https://github.com/00f100/fcphp-sinput","last_synced_at":"2026-04-16T08:30:20.436Z","repository":{"id":56894014,"uuid":"144644815","full_name":"00F100/fcphp-sinput","owner":"00F100","description":"Package to clean input content","archived":false,"fork":false,"pushed_at":"2018-08-14T02:33:23.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T16:26:33.798Z","etag":null,"topics":["clean","content","fcphp","fcphp-sinput","input","security"],"latest_commit_sha":null,"homepage":null,"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/00F100.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}},"created_at":"2018-08-13T23:39:47.000Z","updated_at":"2018-08-14T02:31:23.000Z","dependencies_parsed_at":"2022-08-20T16:10:45.385Z","dependency_job_id":null,"html_url":"https://github.com/00F100/fcphp-sinput","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-sinput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-sinput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-sinput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-sinput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/00F100","download_url":"https://codeload.github.com/00F100/fcphp-sinput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240010504,"owners_count":19733514,"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":["clean","content","fcphp","fcphp-sinput","input","security"],"created_at":"2024-11-08T17:33:46.733Z","updated_at":"2026-04-16T08:30:20.298Z","avatar_url":"https://github.com/00F100.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FcPhp Security Input\n\nPackage to clean input content\n\n[![Build Status](https://travis-ci.org/00F100/fcphp-sinput.svg?branch=master)](https://travis-ci.org/00F100/fcphp-sinput) [![codecov](https://codecov.io/gh/00F100/fcphp-sinput/branch/master/graph/badge.svg)](https://codecov.io/gh/00F100/fcphp-sinput)\n\n[![PHP Version](https://img.shields.io/packagist/php-v/00f100/fcphp-sinput.svg)](https://packagist.org/packages/00F100/fcphp-sinput) [![Packagist Version](https://img.shields.io/packagist/v/00f100/fcphp-sinput.svg)](https://packagist.org/packages/00F100/fcphp-sinput) [![Total Downloads](https://poser.pugx.org/00F100/fcphp-sinput/downloads)](https://packagist.org/packages/00F100/fcphp-sinput)\n\n## How to install\n\nComposer:\n```sh\n$ composer require 00f100/fcphp-sinput\n```\n\nor add in composer.json\n```json\n{\n    \"require\": {\n        \"00f100/fcphp-sinput\": \"*\"\n    }\n}\n```\n\n## How to use\n\n```php\n\u003c?php\n\nuse FcPhp\\SInput\\SInput;\nuse FcPhp\\SInput\\Rules\\AddSlashes;\nuse FcPhp\\SInput\\Rules\\HtmlEntities;\nuse FcPhp\\SInput\\Rules\\StripTags;\n\n$instance = new SInput();\n\n$instance-\u003eaddRule('addslashes', new AddSlashes());\n$instance-\u003eaddRule('htmlentities', new HtmlEntities());\n$instance-\u003eaddRule('striptags', new StripTags());\n\n$content = [\n    'con\"ntent' =\u003e 'value\"',\n    \"ch'~ve\" =\u003e \"value'2\",\n    'tag' =\u003e '\u003ctag\u003econtent\u003c/tag\u003e',\n];\n$this-\u003einstance-\u003eexecuteRules(['striptags', 'htmlentities', 'addslashes'], $content);\n\n//  Print:\n//  \n//  Array(\n//      'con\u0026quot;ntent' =\u003e 'value\u0026quot;',\n//      'ch\\\\\\'~ve' =\u003e 'value\\\\\\'2',\n//      'tag' =\u003e 'content'\n//  )\n//\necho $content;\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00f100%2Ffcphp-sinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F00f100%2Ffcphp-sinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00f100%2Ffcphp-sinput/lists"}