{"id":19039610,"url":"https://github.com/windwalker-io/loader","last_synced_at":"2026-03-12T08:19:16.091Z","repository":{"id":21081011,"uuid":"24380746","full_name":"windwalker-io/loader","owner":"windwalker-io","description":"[READ ONLY] Classes loader to support PSR-0 and PSR-4 standards.","archived":false,"fork":false,"pushed_at":"2021-02-18T07:02:03.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-02T06:44:52.693Z","etag":null,"topics":["class-loader","classloader","php","psr-1","psr-4"],"latest_commit_sha":null,"homepage":"https://github.com/ventoviro/windwalker","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/windwalker-io.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":"2014-09-23T16:58:07.000Z","updated_at":"2024-12-16T13:47:56.000Z","dependencies_parsed_at":"2022-09-14T13:52:53.777Z","dependency_job_id":null,"html_url":"https://github.com/windwalker-io/loader","commit_stats":null,"previous_names":["ventoviro/windwalker-loader"],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Floader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Floader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Floader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Floader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windwalker-io","download_url":"https://codeload.github.com/windwalker-io/loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100137,"owners_count":19747638,"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":["class-loader","classloader","php","psr-1","psr-4"],"created_at":"2024-11-08T22:17:53.991Z","updated_at":"2025-12-18T09:05:11.212Z","avatar_url":"https://github.com/windwalker-io.png","language":"PHP","readme":"# Windwalker Loader\n\nWindwalker Loader is a simple, easy using class loader, support PSR-0, PSR-4 and class mapping autoload.\n\n## Installation via Composer\n\nAdd this to the require block in your `composer.json`.\n\n``` json\n{\n    \"require\": {\n        \"windwalker/loader\": \"~3.0\"\n    }\n}\n```\n\n## Usage\n\n``` php\nuse Windwalker\\Loader\\ClassLoader;\n\n$loader = new ClassLoader;\n\n// Register autoload first\n$loader-\u003eregister();\n\n$loader-\u003eaddPsr0('Windwalker', __DIR__ . '/../src');\n\n$loader-\u003eaddPsr4('Windwalker\\\\Core\\\\', __DIR__ . '/core/src');\n\n$loader-\u003eaddMap('Windwalker\\\\Cache\\\\Cache', __DIR__ . '/../src/Cache/Cache.php');\n\n// Just use your class, it will autoload\n$cache = new \\Windwalker\\Cache\\Cache;\n```\n\n## Autoload Standard\n\n- [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)\n- [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwalker-io%2Floader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindwalker-io%2Floader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwalker-io%2Floader/lists"}