{"id":21840200,"url":"https://github.com/gocom/rah_autoload","last_synced_at":"2025-04-14T10:50:58.651Z","repository":{"id":8373324,"uuid":"9942814","full_name":"gocom/rah_autoload","owner":"gocom","description":"Makes Textpattern CMS to load the autoload file generated by Composer","archived":false,"fork":false,"pushed_at":"2023-02-18T09:35:28.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T00:04:40.144Z","etag":null,"topics":["php","textpattern","textpattern-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gocom.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":"CONTRIBUTING.textile","funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.paypal.me/jukkasvahn"]}},"created_at":"2013-05-08T18:13:08.000Z","updated_at":"2023-12-19T20:19:52.000Z","dependencies_parsed_at":"2024-11-27T21:38:43.865Z","dependency_job_id":null,"html_url":"https://github.com/gocom/rah_autoload","commit_stats":{"total_commits":57,"total_committers":2,"mean_commits":28.5,"dds":"0.24561403508771928","last_synced_commit":"cad527efa49159ba04611a042111f4ef95877993"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_autoload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_autoload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_autoload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_autoload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocom","download_url":"https://codeload.github.com/gocom/rah_autoload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868827,"owners_count":21174754,"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":["php","textpattern","textpattern-plugin"],"created_at":"2024-11-27T21:25:08.415Z","updated_at":"2025-04-14T10:50:58.615Z","avatar_url":"https://github.com/gocom.png","language":"PHP","funding_links":["https://www.paypal.me/jukkasvahn"],"categories":[],"sub_categories":[],"readme":"h1. rah_autoload\n\n\"Download\":https://github.com/gocom/rah_autoload/releases | \"Packagist\":https://packagist.org/packages/rah/rah_autoload | \"Issues\":https://github.com/gocom/rah_autoload/issues\n\nThis \"Textpattern CMS\":https://textpattern.com plugin automatically loads the autoload file generated by \"Composer\":https://getcomposer.org dependency manager. Fits well together with \"textpattern/installer\":https://packagist.org/packages/textpattern/installer and \"textpattern/lock\":https://packagist.org/packages/textpattern/installer to complete the Textpattern and Composer integration. Rah_autoload removes any need to manually import the autoload file, and allows plugins access their dependencies.\n\nh2. Install\n\nUsing \"Composer\":https://getcomposer.org:\n\nbc. $ composer require rah/rah_autoload\n\nOr \"download\":https://github.com/gocom/rah_autoload/releases an installer package.\n\nh2. Developer\n\nh3. Using in your plugins\n\nTo use rah_autoload with your Composer distributed plugins, just add it as a dependency to your @composer.json@:\n\nbc. {\n    \"require\": {\n        \"rah/rah_autoload\": \"*\"\n    }\n}\n\nAnd that's it. Rah_autoload gets installed with your plugin, the autoload file is loaded in Textpattern and you can access your dependencies.\n\nh3. Invoking the autoloader\n\nThe plugin and autoloader is invoked automatically as long as the plugin is enabled, but the autoloader can be invoked manually too, once installed. Normally this isn't required, but if you want to make sure autoloader is initialized before you try to access your dependencies, you may invoke the plugin by our own in your plugin.\n\nYou will be able to invoke the autoloader like any other plugin using Textpattern's native plugin management functions such as @load_plugin()@ and @require_plugin()@. You don't need to do anything other than load the plugin.\n\nbc. load_plugin('rah_autoload', true);\n\nThe above will initialize the autoloader as long as its installed, regardless of its type or status. The plugin and autoloader is initialized only once. Subsequent load and require statements don't have any impact or eat resources. This basically means you can safely \"spam\" the @load_plugin()@ when ever you need an autoloader or class maps generated by Composer.\n\nh2. Changelog\n\nh3. Version 0.3.2 - 2019/03/24\n\n* No actual changes, just quality of life.\n\nh3. Version 0.3.1 - 2014/03/28\n\n* Updated source comment.\n\nh3. Version 0.3.0 - 2014/03/24\n\n* Removed: \"xrstf/composer-php52\":https://packagist.org/packages/xrstf/composer-php52 support.\n* Removed: Preferences. Due to textpattern-installer changes, the plugin can now work automatically. As plugin source is loaded from vendors directory, the source file itself will be able to tell where the autoloader is located.\n\nh3. Version 0.2.1 - 2013/05/20\n\n* Fixed: Reported version number.\n\nh3. Version 0.2.0 - 2013/05/20\n\n* Added: Can load PHP 5.2.0 autoloader files generated by \"xrstf/composer-php52\":https://packagist.org/packages/xrstf/composer-php52.\n* Added: Preferences that let you manually configure the imported autoload files, and disable searching.\n\nh3. Version 0.1.0 - 2013/05/08\n\n* Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_autoload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocom%2Frah_autoload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_autoload/lists"}