{"id":16412808,"url":"https://github.com/script47/easyphp","last_synced_at":"2026-05-12T12:07:09.985Z","repository":{"id":22217400,"uuid":"25550173","full_name":"Script47/EasyPHP","owner":"Script47","description":"A class containing various PHP functions to make a developers life easier.","archived":false,"fork":false,"pushed_at":"2015-09-09T12:28:59.000Z","size":215,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T09:21:29.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Script47.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-21T22:52:11.000Z","updated_at":"2022-11-21T06:38:49.000Z","dependencies_parsed_at":"2022-08-20T23:20:21.406Z","dependency_job_id":null,"html_url":"https://github.com/Script47/EasyPHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Script47%2FEasyPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Script47%2FEasyPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Script47%2FEasyPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Script47%2FEasyPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Script47","download_url":"https://codeload.github.com/Script47/EasyPHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240436180,"owners_count":19800881,"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":[],"created_at":"2024-10-11T06:49:51.458Z","updated_at":"2026-05-12T12:07:04.957Z","avatar_url":"https://github.com/Script47.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"EasyPHP\n=======\n\nA class containing various PHP functions to make a developers life easier. Please feel free to add things to the class so we can make a better class.\n\n\u003cb\u003eVersion\u003c/b\u003e: 1.1.4\n\nExample\n=======\n\nI did simple test which involved a HTML text input and a submit button, the goal was to show the differences in not using EasyPHP class and using it.\n\n\u003ch3\u003eWithout EasyPHP\u003c/h3\u003e\n\n```php\nif(isset($_POST['test'])) {\n    if(!isset($_POST['email']) || empty($_POST['email'])) {\n        echo \"\u003cfont color='red'\u003eEmail field empty.\u003c/font\u003e\";\n    } else if(filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) == FALSE) {\n        echo \"\u003cfont color='red'\u003eEmail format incorrect.\u003c/font\u003e\";\n    } else {\n        $emailAddress = htmlspecialchars(trim(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL)));\n        echo \"\u003cfont color='lightseagreen'\u003eYour Email: \" . $emailAddress . \". You will be redirected in 3 seconds.\u003c/font\u003e\";\n        header(\"Refresh:3; URL=index.php\");\n    }           \n}      \n\n```\n\n\u003cb\u003eTotal Characters\u003c/b\u003e: 670 characters\n\u003cbr/\u003e\n\u003cb\u003eAverage Characters Per Sentence\u003c/b\u003e: 168\n\n\u003ch3\u003eWith EasyPHP\u003c/h3\u003e\n\n```php\nif(isset($_POST['test'])) {\n    if(EasyPHP::isEmpty($_POST['email']) == FALSE) {\n        EasyPHP::message(\"Email field empty.\", \"error\");\n    } else if(EasyPHP::validate($_POST['email'], \"email\") == FALSE) {\n        EasyPHP::message(\"Email format incorrect.\", \"error\");\n    } else {\n        $emailAddress = EasyPHP::sanitize($_POST['email'], \"email\");\n        EasyPHP::message(\"Your Email: \" . $emailAddress . \". You will be redirected in 3 seconds.\", \"message\");\n        EasyPHP::redirect(\"index.php\", \"timed\", 3);\n    }           \n}        \n```\n\n\u003cb\u003eTotal Characters\u003c/b\u003e: 584 characters\n\u003cbr/\u003e\n\u003cb\u003eAverage Characters Per Sentence\u003c/b\u003e: 146\n\nAs the character count which I did shows EasyPHP has a difference of 86 characters and that is quite a big margin and coding is quicker and cleaner looking with EasyPHP.\n\nCredits\n=======\n\n\u003cb\u003eDeveloper\u003c/b\u003e: Script47\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscript47%2Feasyphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscript47%2Feasyphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscript47%2Feasyphp/lists"}