{"id":15046373,"url":"https://github.com/binhnlt/codeigniter-service-layer","last_synced_at":"2025-10-26T20:32:29.523Z","repository":{"id":57027740,"uuid":"84790131","full_name":"binhnlt/codeigniter-service-layer","owner":"binhnlt","description":"For those who too lazy to make service layer for CodeIgniter project :)","archived":false,"fork":false,"pushed_at":"2018-10-31T15:31:51.000Z","size":7,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T00:26:22.516Z","etag":null,"topics":["codeigniter","service-object"],"latest_commit_sha":null,"homepage":"","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/binhnlt.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":"2017-03-13T06:09:11.000Z","updated_at":"2023-06-16T10:00:14.000Z","dependencies_parsed_at":"2022-08-23T16:20:35.252Z","dependency_job_id":null,"html_url":"https://github.com/binhnlt/codeigniter-service-layer","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/binhnlt%2Fcodeigniter-service-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnlt%2Fcodeigniter-service-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnlt%2Fcodeigniter-service-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhnlt%2Fcodeigniter-service-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binhnlt","download_url":"https://codeload.github.com/binhnlt/codeigniter-service-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238397254,"owners_count":19465145,"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":["codeigniter","service-object"],"created_at":"2024-09-24T20:53:02.460Z","updated_at":"2025-10-26T20:32:29.191Z","avatar_url":"https://github.com/binhnlt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter Service Layer\n\nIf you're too lazy to create your own service class, use this. =) \n(Sorry for by bad English)\n\n## INSTALL\n\n### If you're using Composer\n```\ncomposer require nltbinh/codeigniter-service-layer\nphp vendor/nltbinh/codeigniter-service-layer/install.php\n```\n\n### If you're not using composer\nDownload and override this project to your CodeIgniter project\n\n## USAGE\n1. Install this project\n2. Create an Service in `\\application\\services\\` with file name `Sample_service.php`\n```\n\u003c?php\n\nclass Sample_service extends MY_Service\n{\n    public function hello_world()\n    {\n        return \"Hello world\";\n    }\n}\n```\n3. Use service is the same as Model in Controller\n\n```\n$this-\u003eload-\u003eservice('sample_service', '', TRUE);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhnlt%2Fcodeigniter-service-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinhnlt%2Fcodeigniter-service-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhnlt%2Fcodeigniter-service-layer/lists"}