Coder Social home page Coder Social logo

foundation's Introduction

Laravel 4 zurb foundation 4.x helper

This package does not include the framework. It requires the official framework composer package from zurb and provides command line tools to setup foundation for development with laravel and compass.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require aheissenberger/foundation

"require": {
    "laravel/framework": "4.0.*",
    "aheissenberger/foundation": "dev-master"
}

Next, update Composer from Terminal

$ composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Aheissenberger\Foundation\FoundationServiceProvider',

Setup

Run $ php artisan foundation:setup to create a basic skeleton to start:

app/assets
	/sass
	/sprites
	/js
	/img

Run $ php artisan asset:publish aheissenberger/foundation to copy all needed Javascripts to /public

Optional:

Run $ php artisan foundation:demo to create a demofile /foundation.html of all foundation features in /public

Usage

In terminal an run $ compass watch app/assets/sass This will create and update /public/css/app.css

You can use /app/assets/sass/_settings.scss to configure foundation and /app/assets/sass/_main.scss for your app specific css. And to remove compression by compass change settings in /app/assets/sass/config.rb

Update

Run $ composer update to update foundation and $ php artisan asset:publish aheissenberger/foundation to copy the new javascript files to /public

ToDo

  • config foundation with a native Laravel config file
  • automatic include minified and combined version of javascript files

foundation's People

Contributors

aheissenberger avatar

Watchers

James Cloos avatar Ruben Dario Gutierrez Sanchez 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.