{"id":13673817,"url":"https://github.com/zendframework/ZendSkeletonModule","last_synced_at":"2025-04-28T11:30:44.503Z","repository":{"id":66224805,"uuid":"2484892","full_name":"zendframework/ZendSkeletonModule","owner":"zendframework","description":"Sample skeleton module for use with the ZF2 MVC layer","archived":true,"fork":false,"pushed_at":"2019-12-06T17:13:38.000Z","size":34,"stargazers_count":207,"open_issues_count":2,"forks_count":84,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-11T13:35:48.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zendframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-09-29T21:00:56.000Z","updated_at":"2024-10-08T19:31:23.000Z","dependencies_parsed_at":"2023-03-10T23:43:58.267Z","dependency_job_id":null,"html_url":"https://github.com/zendframework/ZendSkeletonModule","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZendSkeletonModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZendSkeletonModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZendSkeletonModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZendSkeletonModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zendframework","download_url":"https://codeload.github.com/zendframework/ZendSkeletonModule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251304681,"owners_count":21567921,"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-08-02T11:00:24.802Z","updated_at":"2025-04-28T11:30:44.155Z","avatar_url":"https://github.com/zendframework.png","language":"PHP","readme":"# Zend Framework Skeleton Module\n\n\u003e ## Repository abandoned 2019-12-05\n\u003e\n\u003e This repository is no longer maintained.\n\nThis is a sample skeleton module for use with\n[zend-mvc](https://docs.zendframework.com/zend-mvc) applications.\n\n## Installation\n\nFirst, decide on a namespace for your new module. For purposes of this README,\nwe will use `MyNewModule`.\n\nClone this repository into your application:\n\n```bash\n$ cd module\n$ git clone https://github.com/zendframework/ZendSkeletonModule MyNewModule\n$ cd MyNewModule\n```\n\nIf you wish to version the new module with your application, and not as a\nseparate project, remove the various Git artifacts within it:\n\n```bash\n$ rm -Rf .git .gitignore\n```\n\nIf you want to version it separately, remove the origin remote so you can\nspecify a new one later:\n\n```bash\n$ git remote remove origin\n```\n\nThe next step will be to change the namespace in the various files. Open each\nof `config/module.config.php`, `src/Module.php`, and\n`src/Controller/SkeletonController.php`, and replace any occurence of\n`ZendSkeletonModule` with your new namespace.\n\n\u003e ### find and sed\n\u003e\n\u003e You can also do this  with the Unix utilties `find` and `sed`:\n\u003e\n\u003e ```bash\n\u003e $ for php in $(find . -name '*.php');do\n\u003e \u003e sed --in-place -e 's/ZendSkeletonModule/MyNewModule/g' $php\n\u003e \u003e done\n\u003e ```\n\nNext, we need to setup autoloading in your application. Open the `composer.json`\nfile in your application root, and add an entry under the `autoload.psr-4` key:\n\n```json\n\"autoload\": {\n    \"psr-4\": {\n        \"MyNewModule\\\\\": \"module/MyNewModule/src/\"\n    }\n}\n```\n\nWhen done adding the entry:\n\n```bash\n$ composer dump-autoload\n```\n\nFinally, notify your application of the module. Open\n`config/modules.config.php`, and add it to the bottom of the list:\n\n```php\nreturn [\n    /* ... */\n    'MyNewModule',\n]\n```\n\n\u003e ### application.config.php\n\u003e\n\u003e If you are using an older version of the skeleton application, you may not\n\u003e have a `modules.config.php` file. If that is the case, open `config/application.config.php`\n\u003e instead, and add your module under the `modules` key:\n\u003e\n\u003e ```php\n\u003e 'modules' =\u003e [\n\u003e     /* ... */\n\u003e     'MyNewModule',\n\u003e ],\n\u003e ```","funding_links":[],"categories":["Application Skeleton"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendframework%2FZendSkeletonModule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzendframework%2FZendSkeletonModule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendframework%2FZendSkeletonModule/lists"}