Giter VIP home page Giter VIP logo

xboilerplate's Introduction

xBoilerplate

xBoilerplate was built to kickstart the development of small dynamic webpages. It can also be used to design websites or web applications directly in CSS3. xBoilerplate is inspired by HTML5 Boilerplate and lots of code is copied from HTML5 Boilerplate. The main difference is that xBoilerplate allows dynamic pages with PHP and includes dynamic libraries like lessphp.

The goal of xBoilerplate is to be simple and to keep it simple. Even though it could be enhanced with more objects and functionality, this is not the goal. It should offer a simple solution to start with a dynamic project.

Getting Started

To get you started as fast as possible, xBoilerplate uses Vagrant so be sure to install vagrant first. Having done that, there are two ways forward:

  1. Composer (recommended)

Composer is a dependency management tool for PHP, and xBoilerplate is a Composed package. Download composer.phar and put it into the directory that will be the root of your project. Then create a file called composer.json and insert the following:

{ "name": "COMPANY/APPLICATION", "repositories": [ { "type": "vcs", "url": "https://github.com/centralway/xBoilerplate" } ], "require": { "centralway/xBoilerplate": ">=1.2" } }

Within the directory you created, run the following command to cause Composer to obtain the dependencies (xBoilerplate):

php composer.phar install

Next, run the auto-deploy script that will create a skeleton xBoilerplate application:

php vendor/centralway/xBoilerplate/deploy.php

  1. Direct check-out (not recommended)

You can, if you wish, simply download the xBoilerplate zip file and run vagrant from within there, however you will not benefit from having dependency management built-in.

Documentation

xBoilerplate allows a maximum navigation level is 2. All urls are in the form /category/page. All content for the pages is stored in httpdocs/page. The default category and page is index, so if you access /, the file httpdocs/page/index/index.php is opened. If you call the url /contact, the file httpdocs/page/contact.php is opened. For the page /about/team, it's httpdocs/page/about/team.php.

The basic template around every page is in httpdocs/layout/template.php. This file loads the default header.php and footer.php which already has the basic content needed. To create your own template, overwrite the code in template.php but keep the loadLayout for header and footer and the loadPage command.

Changes

For changes in the API please check the file changes.txt

xboilerplate's People

Contributors

ruflin avatar djuric42 avatar martin-naumann avatar igama avatar 0xjjpa avatar otupman avatar

Stargazers

Tom avatar  avatar  avatar Christian Kramer avatar  avatar Michael Heiniger avatar Oliver Müller avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  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.