{"id":17613919,"url":"https://github.com/marktopper/helpers.php","last_synced_at":"2025-03-30T00:13:07.649Z","repository":{"id":26671517,"uuid":"30128101","full_name":"marktopper/helpers.php","owner":"marktopper","description":"helpers.php is a PHP file with some functions you might need.","archived":false,"fork":false,"pushed_at":"2016-04-15T13:55:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:16:10.673Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marktopper.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":"2015-01-31T22:08:46.000Z","updated_at":"2016-04-15T13:55:16.000Z","dependencies_parsed_at":"2022-07-24T11:46:05.144Z","dependency_job_id":null,"html_url":"https://github.com/marktopper/helpers.php","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/marktopper%2Fhelpers.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktopper%2Fhelpers.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktopper%2Fhelpers.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktopper%2Fhelpers.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marktopper","download_url":"https://codeload.github.com/marktopper/helpers.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258869,"owners_count":20748573,"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-22T18:15:01.898Z","updated_at":"2025-03-30T00:13:07.630Z","avatar_url":"https://github.com/marktopper.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helpers.php\nhelpers.php is a PHP file with some functions you might need.\n\n# Helpers\n\n### snake_case\nTranslate a string into snake case\nlike: `snakeCase` =\u003e `snake_case`\n```\nsnake_case('helloWorld'); // returns: hello_world\n```\n\n### camel_case\nTranslate a string into camel case\nlike: `camel_case` =\u003e `camelCase`\n```\ncamel_case('hello_world'); // returns: helloWorld\n```\n\n### dd\nDumps out all the arguments and end execution\nlike: `dd(array('foo' =\u003e 'bar'), true, false, null, 'test');` returns:\n```\narray(1) {\n  [\"foo\"]=\u003e string(3) \"bar\"\n}\nbool(true)\nbool(false)\nNULL\nstring(4) \"test\"\n```\n\n### array_add\nAdds a key to the array if not allready exists\nlike:\n```\n$array = array('foo' =\u003e 'bar');\n$array = array_add($array, 'key', 'value');\n```\n\n### array_devide\nSplits a array into two arrays, one with keys and one with values\nlike:\n```\n$array = array('foo' =\u003e 'bar');\nlist($keys, $values) = array_divide($array);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarktopper%2Fhelpers.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarktopper%2Fhelpers.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarktopper%2Fhelpers.php/lists"}