{"id":18821176,"url":"https://github.com/compwright/codeigniter_classmap","last_synced_at":"2025-07-28T12:33:39.244Z","repository":{"id":147469305,"uuid":"9304078","full_name":"compwright/codeigniter_classmap","owner":"compwright","description":"A simple, lightweight classmap autoloader for CodeIgniter libraries","archived":false,"fork":false,"pushed_at":"2013-04-08T19:16:54.000Z","size":102,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T14:47:50.781Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compwright.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":"2013-04-08T18:48:35.000Z","updated_at":"2020-11-06T02:46:22.000Z","dependencies_parsed_at":"2023-03-25T14:48:28.494Z","dependency_job_id":null,"html_url":"https://github.com/compwright/codeigniter_classmap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fcodeigniter_classmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fcodeigniter_classmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fcodeigniter_classmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fcodeigniter_classmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/codeigniter_classmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248800113,"owners_count":21163404,"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-11-08T00:35:28.662Z","updated_at":"2025-04-14T00:26:41.073Z","avatar_url":"https://github.com/compwright.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Classmapper\n===========\n\nA tiny classmap autoloader for CodeIgniter.\n\nAuthor: [Jonathon Hill](http://jonathonhill.net)\n\nUse Case\n--------\n\n* You want to load classes without having them attached to the `$this` super-object.\n* Your classes are interdependent, so that manual load calls have a high chances of\n  being executed more than once.\n* You want a true autoloader in CodeIgniter.\n\nInstallation\n------------\n\nTo install, copy the contents of this package into your CodeIgniter application directory and define a `pre_system` hook to call `Classmapper::register()`:\n\n```\n$hook['pre_system'] = array(\n\t'class'    =\u003e 'Classmapper',\n\t'function' =\u003e 'register',\n\t'filename' =\u003e 'Classmapper.php',\n\t'filepath' =\u003e 'hooks',\n);\n```\n\nBe sure to enable hooks in your main `config.php` file.\n\nUsage\n-----\n\nOnce Classmapper is installed, you have to manually configure the `config/classmap.php` file for each of the classes that you want to be able to autoload:\n\n```\n$classmap = array(\n\t'Foolib'          =\u003e APPPATH . 'libraries/Foolib.php',\n\t'ThirdPartyClass' =\u003e APPPATH . 'third_party/package/Class.php',\n);\n```\n\nYou may now instantiate objects from the classes you defined without having to manually `require` or call `$this-\u003eload`, and the required file will be loaded automatically.\n\n```\n$foo = new Foolib();\n```\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fcodeigniter_classmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Fcodeigniter_classmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fcodeigniter_classmap/lists"}