GithubHelp home page GithubHelp logo

vinicius73 / alter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alterfw/alter

0.0 0.0 0.0 552 KB

A small framework that provides the way to develop model-based Wordpress themes

Home Page: http://alterfw.github.io

License: MIT License

PHP 100.00%

alter's Introduction

Alter

Build Status

A small framework that provides the way to develop model-based Wordpress themes

Installation

Create a composer.json for your theme:

composer init

Then add to your composer.json:

"minimum-stability": "dev",
"require": {
    "alterfw/alter": "0.1.x"
}    

Run composer:

composer install

After this, add this line to your functions.php:

require_once "vendor/autoload.php";

Documentation

Checkout our documentation on readthedocs.org.

You can also contribute with the documentation in the separated repository.

Contributing

Fell free to help to improve Alter, you can make pull requests or improve the documentation also.

If you make a Pull Request of a new feature, make sure to link the documentation Pull Request and to write the respective tests.

Development Environment

We use Vagrant to create the Alter Development Environment. To setup, follow this instructions:

Clone our fork of Vagrantpress:

git clone https://github.com/alterfw/vagrantpress

And start the virtual machine:

cd vagrantpress;
vagrant up	

So, with the Vagrant VM on, you need to replace the alter dependency (installed over composer) by your clone of the repository;

vagrant ssh
cd /vagrant/wordpress/wp-content/themes/example-theme-master/vendor/alterfw
rm -rf alter
git clone [email protected]:alterfw/alter.git

Note: if you are using Windows you cannot use vagrant ssh, follow this instructions to setup PuTTY.

Writing the tests

When writing tests please make sure to follow the Arrange-Act-Assert pattern.

Running the tests

To run the tests you need first to setup the development environment.

After this you can run the tests simply:

cd /vagrant/wordpress/wp-content/themes/example-theme-master/vendor/alterfw/alter
phpunit

If you receive any errors running phpunit, run vagrant provision and try again.

alter's People

Contributors

giseudo avatar sergiopvilar avatar vinicius73 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.