{"id":22340458,"url":"https://github.com/josephnc/phpfuncs","last_synced_at":"2025-03-26T09:16:28.992Z","repository":{"id":57001712,"uuid":"131370879","full_name":"JosephNC/phpfuncs","owner":"JosephNC","description":"PHP user defined functions for quick use on your projects.","archived":false,"fork":false,"pushed_at":"2019-11-02T09:52:10.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T10:34:02.394Z","etag":null,"topics":["php","php-functions"],"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/JosephNC.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-04-28T03:57:35.000Z","updated_at":"2023-01-06T16:06:32.000Z","dependencies_parsed_at":"2022-08-21T14:10:36.222Z","dependency_job_id":null,"html_url":"https://github.com/JosephNC/phpfuncs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephNC%2Fphpfuncs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephNC%2Fphpfuncs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephNC%2Fphpfuncs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephNC%2Fphpfuncs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephNC","download_url":"https://codeload.github.com/JosephNC/phpfuncs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623081,"owners_count":20645681,"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":["php","php-functions"],"created_at":"2024-12-04T07:11:46.564Z","updated_at":"2025-03-26T09:16:28.972Z","avatar_url":"https://github.com/JosephNC.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPFuncs\n\nPHP user defined functions for quick use on your projects.\n\nInstallation\n------------\n\nPHP 5.6+ is required.\n```\ncomposer require josephnc/phpfuncs\n```\n\nUsage\n-------\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n#use function JosephNC\\PHPFuncs\\\u003cfunction_name_here\u003e;\n\nuse function JosephNC\\PHPFuncs\\real_ip;\nuse function JosephNC\\PHPFuncs\\is_array_equal;\n\n$array1 = [\n    'foo' =\u003e 'bar',\n    'bar' =\u003e 'foo',\n];\n\n$array2 = [\n    'bar' =\u003e 'foo',\n    'foo' =\u003e 'bar',\n];\n\n$ip_address = real_ip();\n$equal      = is_array_equal($array1, $array2);\n\necho 'Here is your IP Address: ' . $ip_address . '\u003cbr\u003e';\n\nif ($equal) {\n    echo 'Your arrays are equal!';\n} else {\n    echo 'Your arrays are not equal.';\n}\n```\n\nOutput:\n```\nHere is your IP Address: 127.0.0.1\nYour arrays are equal!\n```\n\nNew Functions\n-------\nIf you will like your custom functions to be added to this repository, please contact me.\nThanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephnc%2Fphpfuncs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephnc%2Fphpfuncs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephnc%2Fphpfuncs/lists"}