{"id":19691561,"url":"https://github.com/omnicode/lara-support","last_synced_at":"2025-04-29T09:31:08.689Z","repository":{"id":57031319,"uuid":"121278322","full_name":"omnicode/lara-support","owner":"omnicode","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-02T07:18:01.000Z","size":42,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T14:34:51.783Z","etag":null,"topics":["lara","lara-support","laravel","support"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omnicode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T17:27:29.000Z","updated_at":"2024-05-31T08:56:51.000Z","dependencies_parsed_at":"2022-08-23T18:50:44.845Z","dependency_job_id":null,"html_url":"https://github.com/omnicode/lara-support","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnicode%2Flara-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnicode","download_url":"https://codeload.github.com/omnicode/lara-support/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473216,"owners_count":21595024,"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":["lara","lara-support","laravel","support"],"created_at":"2024-11-11T19:09:46.838Z","updated_at":"2025-04-29T09:31:08.443Z","avatar_url":"https://github.com/omnicode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://travis-ci.org/omnicode/lara-support\"\u003e\u003cimg src=\"https://travis-ci.org/omnicode/lara-support.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/omnicode/lara-support\"\u003e\u003cimg src=\"https://poser.pugx.org/omnicode/lara-support/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/omnicode/lara-support\"\u003e\u003cimg src=\"https://poser.pugx.org/omnicode/lara-support/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/omnicode/lara-support\"\u003e\u003cimg src=\"https://poser.pugx.org/omnicode/lara-support/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Lara-Support\n\nUseful classes/methods  \n\n\n# LaraServiceProvider\n    \n    mergeConfig($rootPath, $config = '', $isPublish = true)\n    loadViews($rootPath, $path = '', $isPublish = true)\n    loadRoutes ($rootPath, $path = '')\n    runningInConsole($commands)\n    \n    registerFunctions($rootPath, $path = 'helpers.php')\n    registerConstants($rootPath, $path = 'constants.php')\n    registerSingleton($singleton, $class)\n    registerSingletons($singletons)\n    registerMiddleware($middleware)\n    registerProviders($providers)\n    registerAlias($alias, $class)\n    registerAliases($aliases)\n    \n    getPackage($rootPath)\n    getPackagePath($rootPath)\n    getSrcPath($rootPath)\n    getConfigPath($rootPath)\n    getResourcePath($rootPath)\n    getViewVendorPath($path)\n    getViewPath($rootPath, $view = 'views')\n    getRoutePath($rootPath, $path = 'routes.php')\n    \n    \n# Str\n    positions($string, $search)\n    \n        finds the given string's position in the text\n        return empty array or associative array\n            [\n                occurence =\u003e position\n            ]\n        example \n        \n        \n        Str::positions('I love php, I love php too!','php')\n        \n        returns\n            [\n              1 =\u003e 7\n              2 =\u003e 19\n            ]\n        Str::positions('I love php, I love php too!','Php')\n        return []\n       \n            \n    ipositions($string, $search)\n        \n        case-insesitive versino for positions\n\n        Str::ipositions('I love php, I love php too!','php')\n            returns\n                [\n                  1 =\u003e 7\n                  2 =\u003e 19\n                ]\n        Str::ipositions('I love php, I love php too!','Php')\n            returns\n                [\n                  1 =\u003e 7\n                  2 =\u003e 19\n                ]\n    \n    \n    after($subject, $search, $occurrence = 1, $caseSensitive = true)\n        Str::after('I love php, I love php too!','php')    \n            return \", I love php too!\"\n        Str::after('I love php, I love php too!','php', 2)\n            return \" too!\"\n        Str::after('I love php, I love php too!','php', 3)\n            return false\n        Str::after('I love php, I love php too!','php', Str::LAST)\n            return \" too!\"\n        Str::after('I love php, I love php too!','PHP', 2)\n            return false\n        Str::after('I love php, I love php too!','PHP', 2, false)\n            return \" too!\"\n        \n        \n    before\n        Str::before('I love php, I love php too!','php')    \n            return \"I love php, I love \"\n        Str::before('I love php, I love php too!','PHP', 1)\n            return \"I love \"\n        Str::before('I love php, I love php too!','php', 2)\n            return \"I love php, I love \"\n        Str::before('I love php, I love php too!','php', 3)\n            return false\n        Str::before('I love php, I love php too!','PHP', 1)\n            return false\n        Str::before('I love php, I love php too!','PHP', 1, false)\n            return \"I love \"\n        \n    between\n    wrap\n    iwrap\n    \n# DB\n    getTable\n        return all db tables list\n    \n    getColumnsFullInfo*\n        return list\n            [\n                coulumn =\u003e [\n                    type        =\u003e string | int |bigint |smallint \n                    is_nullable =\u003e true | false,\n                    default     =\u003e default-value | null\n                    extra       =\u003e auto_increment | ''\n                    length      =\u003e length (This key set when column have lenght)\n                    additioanal =\u003e unsigned | zerofill \n                ]\n            ]\n            \n        *example is for mysql DB\n        \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnicode%2Flara-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnicode%2Flara-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnicode%2Flara-support/lists"}