{"id":24016345,"url":"https://github.com/decodelabs/wellspring","last_synced_at":"2025-06-29T13:34:50.698Z","repository":{"id":225859623,"uuid":"767025215","full_name":"decodelabs/wellspring","owner":"decodelabs","description":"PHP autoload management tools","archived":false,"fork":false,"pushed_at":"2025-04-14T08:50:25.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-14T09:46:44.115Z","etag":null,"topics":["autoload","php"],"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/decodelabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-04T15:13:44.000Z","updated_at":"2025-04-14T08:50:29.000Z","dependencies_parsed_at":"2024-03-04T18:15:58.027Z","dependency_job_id":"084bf2c3-92cc-4ed6-a087-854ee965ade5","html_url":"https://github.com/decodelabs/wellspring","commit_stats":null,"previous_names":["decodelabs/wellspring"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decodelabs%2Fwellspring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decodelabs%2Fwellspring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decodelabs%2Fwellspring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decodelabs%2Fwellspring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decodelabs","download_url":"https://codeload.github.com/decodelabs/wellspring/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860154,"owners_count":21173339,"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":["autoload","php"],"created_at":"2025-01-08T08:48:59.645Z","updated_at":"2025-04-15T14:07:37.312Z","avatar_url":"https://github.com/decodelabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wellspring\n\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/decodelabs/wellspring?style=flat)](https://packagist.org/packages/decodelabs/wellspring)\n[![Latest Version](https://img.shields.io/packagist/v/decodelabs/wellspring.svg?style=flat)](https://packagist.org/packages/decodelabs/wellspring)\n[![Total Downloads](https://img.shields.io/packagist/dt/decodelabs/wellspring.svg?style=flat)](https://packagist.org/packages/decodelabs/wellspring)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/decodelabs/wellspring/integrate.yml?branch=develop)](https://github.com/decodelabs/wellspring/actions/workflows/integrate.yml)\n[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-44CC11.svg?longCache=true\u0026style=flat)](https://github.com/phpstan/phpstan)\n[![License](https://img.shields.io/packagist/l/decodelabs/wellspring?style=flat)](https://packagist.org/packages/decodelabs/wellspring)\n\n### PHP autoload management tools\n\nWellspring provides simple tools to manage and configure autoloaders in PHP.\n\n---\n\n## Installation\n\nInstall via Composer:\n\n```bash\ncomposer require decodelabs/wellspring\n```\n\n## Usage\n\nUse \u003ccode\u003eWellspring\u003c/code\u003e to register autoloaders with a Priority level - the higher the priority, the earlier the autoloader will be called.\n\nThe library automatically remaps loaders on the fly when necessary (even when \u003ccode\u003espl_autoload_register()\u003c/code\u003e and \u003ccode\u003espl_autoload_unregister()\u003c/code\u003e are used directly), ensuring edge-case functionality does not interfere with the intended load order.\n\nAny loaders registered without a priority default to \u003ccode\u003ePriority::Medium\u003c/code\u003e, and any with matching priorities will be called in the order they were registered.\n\n```php\nuse DecodeLabs\\Wellspring;\nuse DecodeLabs\\Wellspring\\Priority;\n\nWellspring::register(function(string $class) {\n    // This will get called last\n}, Priority::Low);\n\nWellspring::register(function(string $class) {\n    // This will get called first\n}, Priority::High);\n\nspl_autoload_register(function(string $class) {\n    // This will get called second\n});\n\nspl_autoload_call('test');\n```\n\n\n## Licensing\n\nWellspring is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecodelabs%2Fwellspring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecodelabs%2Fwellspring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecodelabs%2Fwellspring/lists"}