{"id":20945916,"url":"https://github.com/eviweb/fuelphp-modinit","last_synced_at":"2025-03-13T04:24:03.319Z","repository":{"id":4925663,"uuid":"6082246","full_name":"eviweb/fuelphp-modinit","owner":"eviweb","description":"Modinit package for fuelphp","archived":false,"fork":false,"pushed_at":"2012-10-12T09:28:58.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-19T21:46:17.917Z","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":"AsyncHttpClient/async-http-client","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eviweb.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":"2012-10-04T21:24:16.000Z","updated_at":"2014-03-11T10:24:48.000Z","dependencies_parsed_at":"2022-07-07T23:50:37.360Z","dependency_job_id":null,"html_url":"https://github.com/eviweb/fuelphp-modinit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviweb%2Ffuelphp-modinit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviweb%2Ffuelphp-modinit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviweb%2Ffuelphp-modinit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eviweb%2Ffuelphp-modinit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eviweb","download_url":"https://codeload.github.com/eviweb/fuelphp-modinit/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243337198,"owners_count":20275249,"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-18T23:51:13.294Z","updated_at":"2025-03-13T04:24:03.288Z","avatar_url":"https://github.com/eviweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fuel PHP Modinit Package\n========================\n\nThis package adds some features to initialize modules automatically.    \n\nThree ways to make a module compliant; one does not exclude the others. \n       \n######_Case 1:_    \n1.   create at the root of the module directory a file named ``bootstrap.php``    \n2.   place initialization code in it   \n    \n######_Case 2:_    \n1.   create at the root of the module directory a file named as the module,   \n2.   add the module namespace as described in the [manual](http://docs.fuelphp.com/general/modules.html \n\"Fuel PHP Modules Documentation\"),   \n3.   create a function named ``__init``   \n4.   place initialization code in it   \n    \n######_Case 3:_    \n1.   create in the _./classes_ directory a class named as as the module,    \n2.   add the module namespace as described in the [manual](http://docs.fuelphp.com/general/modules.html \n\"Fuel PHP Modules Documentation\"),    \n3.   create a static method named ``_init`` as described in the [manual](http://docs.fuelphp.com/general/classes.html \n\"Fuel PHP Classes Documentation\")    \n4.   place initialization code in it  \n\nTo illustrate cases 2 and 3, here follow two examples :    \n\u003e Assumed the module is named _mymodule_, its namespace will automatically be __\\\\Mymodule__\n\u003e   \n\u003e ######_Case 2:_   \n\u003e create a file named ``./mymodule.php``\n\u003e add the code :    \n\u003e\u003e      namespace Mymodule;    \n\u003e\u003e      function __init()\n\u003e\u003e      {\n\u003e\u003e          // place your initilization code here\n\u003e\u003e      }    \n\u003e    \n\u003e ######_Case 3:_   \n\u003e create a file named ``./classes/mymodule.php``\n\u003e add the code :    \n\u003e\u003e      namespace Mymodule;    \n\u003e\u003e      class Mymodule\n\u003e\u003e      {\n\u003e\u003e          public static function _init()\n\u003e\u003e          {\n\u003e\u003e              // place your initilization code here\n\u003e\u003e          }\n\u003e\u003e      }    \n\u003e  \n   \n__These examples assume that the module is referenced in the ``always_load.modules`` option of the application config file.__    \nTo inizialize a module loaded manually, call this package method ``Initializer::init()`` with the name of the module as argument, like this :   \n\u003e       \\evidev\\fuelphp\\modinit\\Initializer::init('mymodule');","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feviweb%2Ffuelphp-modinit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feviweb%2Ffuelphp-modinit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feviweb%2Ffuelphp-modinit/lists"}