Giter Site home page Giter Site logo

jeanpaulruiz / magento-extension-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aydinhassan/magento-extension-base

0.0 1.0 0.0 272 KB

A starting point for a Magento module, including Composer & Unit testing configuration

License: MIT License

PHP 100.00%

magento-extension-base's Introduction

Base Magento Extension

Pre-configured repository for building a Magento extension. Provides Composer configuration and common Composer dependencies.

Setup

First, create a repository for your extension, then run the following commands:

$ git clone https://github.com/AydinHassan/magento-extension-base your-ext-name
$ cd your-ext-name
$ php build.php

Follow the instructions and that's it!, an initial commit will be made for your and your remote added. You can then run git push whenever you are ready.

Module Structure

After following the setup the module created will have the following structure.

├── LICENSE
├── README.md
├── app
│   ├── code
│   │   └── community
│   │       └── AydinHassan
│   │           └── Parrot
│   │               ├── Block
│   │               ├── Helper
│   │               ├── Model
│   │               ├── controllers
│   │               ├── etc
│   │               │   └── config.xml
│   │               └── sql
│   │                   └── aydinhassan_parrot_setup
│   ├── design
│   │   ├── adminhtml
│   │   │   └── default
│   │   │       └── default
│   │   │           ├── layout
│   │   │           │   └── aydinhassan
│   │   │           └── template
│   │   │               └── aydinhassan
│   │   │                   └── parrot
│   │   └── frontend
│   │       └── base
│   │           └── default
│   │               ├── layout
│   │               │   └── aydinhassan
│   │               └── template
│   │                   └── aydinhassan
│   │                       └── parrot
│   └── etc
│       └── modules
│           └── AydinHassan_Parrot.xml
├── composer.json
├── composer.lock
├── phpunit.xml
├── skin
│   └── frontend
│       └── base
│           └── default
│               └── js
│                   └── aydinhassan
│                       └── parrot
└── test
    ├── bootstrap.php
    └── parrot
        └── DemoTest.php

Unit Tests

We are using Aspect Mock which uses Go! AOP to be able to create test doubles for static method calls. This is required due to Magento relying heavily on static calls to the Mage class.

Unit tests should be a core part of any project so it's recommended to read up on Aspect Mock and keep your project up to date as it is still in Alpha!

magento-extension-base's People

Contributors

aydinhassan avatar mikeymike avatar adam-paterson avatar

Watchers

Jean Paul Ruiz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.