Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Mar 22, 2016
1 parent 15a6340 commit 32205cc
Showing 1 changed file with 5 additions and 52 deletions.
57 changes: 5 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,9 @@
[![Build Status](https://travis-ci.org/GeneaLabs/bones-macros.svg?branch=master)](https://travis-ci.org/GeneaLabs/bones-macros) [![Latest Stable Version](https://poser.pugx.org/genealabs/bones-macros/v/stable.svg)](https://packagist.org/packages/genealabs/bones-macros) [![Latest Unstable Version](https://poser.pugx.org/genealabs/bones-macros/v/unstable.svg)](https://packagist.org/packages/genealabs/bones-macros) [![License](https://poser.pugx.org/genealabs/bones-macros/license.svg)](https://packagist.org/packages/genealabs/bones-macros)

# Laravel Bones Macros (bones-macros)

# Laravel Casts
## Installation

To install bones-macros in Laravel 5.2:

To install in Laravel 5.0+:
```sh
composer require "genealabs/bones-macros":"0.3.*"
```

or add it to you composer.json file:

```json
"require": {
/* ... */,
"genealabs/bones-macros": "0.3.*"
},
/* ... */
```

If you are using Laravel < 5.2 use version `0.2.*`.

And then add the service provider to your app.php config file:
```php
// 'providers' => [
GeneaLabs\Bones\Macros\BonesMacrosServiceProvider::class,
// ];
composer require "genealabs/bones-macros":"0.1.*"
```

## Usage

These HTML and FORM macros are intended to be used mainly in Blade templates to reduce tedium.

## Methods

The following methods are available to use:

```php
// provides a Bootstrap-compatible cancel button that will take you to the previous page.
{{ Form::cancelButton() }}

// provides a select list with a range of intervals
{{ Form::selectRangeWithInterval($name, $start, $end, $interval, $default = null, $attributes = []) }}

// provides ability to slugify any text
{{ HTML::slugify($text) }}
```

## Dependencies

At this time this package requires:

- Laravel 4.2+
- Bootstrap 3.1+
## Work In Progress
This is an evolution of GeneaLabs/Bones-Macros, more details to come.

0 comments on commit 32205cc

Please sign in to comment.