Skip to content

Commit

Permalink
Update doc.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 3, 2014
1 parent a0e9893 commit 7dcdfac
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
46 changes: 41 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
Notification for Laravel 4
Messages Component for Laravel 4 and Orchestra Platform 2
==============

Messages Component bring a unified notification support for Laravel 4.
Messages Component bring a unified notification support for Laravel 4 and Orchestra Platform 2.

[![Latest Stable Version](https://poser.pugx.org/orchestra/messages/v/stable.png)](https://packagist.org/packages/orchestra/messages)
[![Total Downloads](https://poser.pugx.org/orchestra/messages/downloads.png)](https://packagist.org/packages/orchestra/messages)
[![Build Status](https://travis-ci.org/orchestral/messages.svg?branch=master)](https://travis-ci.org/orchestral/messages)
[![Coverage Status](https://coveralls.io/repos/orchestral/messages/badge.png?branch=master)](https://coveralls.io/r/orchestral/messages?branch=master)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/orchestral/messages/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/orchestral/messages/)

## Quick Installation
## Table of Content

* [Version Compatibility](#version-compatibility)
* [Installation](#installation)
* [Configuration](#configuration)
* [Usage](#usage)
* [Change Log](http://orchestraplatform.com/docs/latest/components/messages/changes#v2-2)

Laravel | Messages
:----------|:----------
4.2.x | 2.2.x@dev

## Installation

To install through composer, simply put the following in your `composer.json` file:

Expand All @@ -21,8 +33,20 @@ To install through composer, simply put the following in your `composer.json` fi
}
```

And then run `composer install` from the terminal.

### Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/messages=2.2.*"

Next add the service provider in `app/config/app.php`.

## Configuration

Add `Orchestra\Messages\MessagesServiceProvider` service provider in `app/config/app.php`.

```php
'providers' => array(

Expand All @@ -32,7 +56,19 @@ Next add the service provider in `app/config/app.php`.
),
```

### Aliases

You might want to add `Orchestra\Messages\Facade` to class aliases in `app/config/app.php`:

```php
'aliases' => array(

// ...

'Orchestra\Messages' => 'Orchestra\Messages\Facade',
),
```

## Resources

* [Documentation](http://orchestraplatform.com/docs/latest/components/support)
* [Change Log](http://orchestraplatform.com/docs/latest/components/messages/changes#v2-2)
* [Documentation](http://orchestraplatform.com/docs/latest/components/messages)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orchestra/messages",
"description": "Messages Component for Orchestra Platform 2",
"description": "Messages Component for Laravel 4 and Orchestra Platform 2",
"homepage": "http://orchestraplatform.com/docs/latest/components/messages/",
"keywords": ["orchestra-platform", "orchestral", "laravel", "messages", "notification"],
"license": "MIT",
Expand Down
14 changes: 14 additions & 0 deletions src/Messages/Facade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php namespace Orchestra\Messages;

class Facade extends \Illuminate\Support\Facades\Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'orchestra.messages';
}
}

0 comments on commit 7dcdfac

Please sign in to comment.