{"id":15482225,"url":"https://github.com/aydinhassan/magento-extension-base","last_synced_at":"2025-04-22T16:49:57.544Z","repository":{"id":24364559,"uuid":"27763511","full_name":"AydinHassan/magento-extension-base","owner":"AydinHassan","description":"A starting point for a Magento module, including Composer \u0026 Unit testing configuration","archived":false,"fork":false,"pushed_at":"2015-09-02T09:26:20.000Z","size":272,"stargazers_count":10,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T07:17:07.399Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AydinHassan.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":"2014-12-09T11:29:24.000Z","updated_at":"2021-04-19T01:54:29.000Z","dependencies_parsed_at":"2022-08-22T07:00:16.305Z","dependency_job_id":null,"html_url":"https://github.com/AydinHassan/magento-extension-base","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/AydinHassan%2Fmagento-extension-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AydinHassan%2Fmagento-extension-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AydinHassan%2Fmagento-extension-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AydinHassan%2Fmagento-extension-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AydinHassan","download_url":"https://codeload.github.com/AydinHassan/magento-extension-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250282343,"owners_count":21404953,"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-10-02T05:08:32.154Z","updated_at":"2025-04-22T16:49:57.504Z","avatar_url":"https://github.com/AydinHassan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base Magento Extension\n\nPre-configured repository for building a Magento extension. Provides `Composer` configuration and common\n`Composer` dependencies. \n\n## Setup\n\nFirst, create a repository for your extension, then run the following commands:\n\n    $ git clone https://github.com/AydinHassan/magento-extension-base your-ext-name\n    $ cd your-ext-name\n    $ php build.php\n    \nFollow the instructions and that's it!, an initial commit will be made for your and your remote added. You can then\nrun `git push` whenever you are ready.\n\n## Module Structure\nAfter following the setup the module created will have the following structure.\n```\n├── LICENSE\n├── README.md\n├── app\n│   ├── code\n│   │   └── community\n│   │       └── AydinHassan\n│   │           └── Parrot\n│   │               ├── Block\n│   │               ├── Helper\n│   │               ├── Model\n│   │               ├── controllers\n│   │               ├── etc\n│   │               │   └── config.xml\n│   │               └── sql\n│   │                   └── aydinhassan_parrot_setup\n│   ├── design\n│   │   ├── adminhtml\n│   │   │   └── default\n│   │   │       └── default\n│   │   │           ├── layout\n│   │   │           │   └── aydinhassan\n│   │   │           └── template\n│   │   │               └── aydinhassan\n│   │   │                   └── parrot\n│   │   └── frontend\n│   │       └── base\n│   │           └── default\n│   │               ├── layout\n│   │               │   └── aydinhassan\n│   │               └── template\n│   │                   └── aydinhassan\n│   │                       └── parrot\n│   └── etc\n│       └── modules\n│           └── AydinHassan_Parrot.xml\n├── composer.json\n├── composer.lock\n├── phpunit.xml\n├── skin\n│   └── frontend\n│       └── base\n│           └── default\n│               └── js\n│                   └── aydinhassan\n│                       └── parrot\n└── test\n    ├── bootstrap.php\n    └── parrot\n        └── DemoTest.php\n```\n\n## Unit Tests\n\nWe are using [Aspect Mock](https://github.com/Codeception/AspectMock) which uses [Go! AOP](https://github.com/lisachenko/go-aop-php) \nto be able to create test doubles for static method calls. This is required due to Magento relying heavily on static \ncalls to the `Mage` class. \n\nUnit tests should be a core part of any project so it's recommended to read up on [Aspect Mock](https://github.com/Codeception/AspectMock) \nand keep your project up to date as it is still in Alpha!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydinhassan%2Fmagento-extension-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faydinhassan%2Fmagento-extension-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydinhassan%2Fmagento-extension-base/lists"}