Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Commit

Permalink
Laravel 5.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Jun 26, 2015
1 parent f771978 commit b709521
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Caffeinated SEO
===============
[![Laravel](https://img.shields.io/badge/Laravel-5.0-orange.svg?style=flat-square)](http://laravel.com)
[![Laravel 5.0](https://img.shields.io/badge/Laravel-5.0-orange.svg?style=flat-square)](http://laravel.com)
[![Laravel 5.1](https://img.shields.io/badge/Laravel-5.1-orange.svg?style=flat-square)](http://laravel.com)
[![Source](http://img.shields.io/badge/source-caffeinated/SEO-blue.svg?style=flat-square)](https://github.com/caffeinated/SEO)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license)

Expand All @@ -12,26 +13,40 @@ You will find user friendly and up to date documentation in the wiki here: [Caff

Quick Installation
------------------
Begin by installing the package through Composer. Add `caffeinated/seo` to your composer.json file:
Begin by installing the package through Composer. Depending on what version of Laravel you are using (5.0 or 5.1), you'll want to pull in the `~1.0` or `~2.0` release, respectively:

#### Laravel 5.0.x
```
"caffeinated/seo": "~1.0@dev"
composer require caffeinated/seo=~1.0
```

Then run `composer update` to pull the package in.

Once this operation is complete, simply add the service provider class and facade alias to your project's `config/app.php` file:
#### Laravel 5.1.x
```
composer require caffeinated/seo=~2.0
```

#### Service Provider
Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:

#### Laravel 5.0.x
##### Service Provider
```php
'Caffeinated\SEO\SEOServiceProvider',
```

#### Facade

##### Facade
```php
'Meta' => 'Caffeinated\SEO\Facades\Metadata',
```

#### Laravel 5.1.x
##### Service Provider
```php
Caffeinated\SEO\SEOServiceProvider::class,
```

##### Facade
```php
'Meta' => Caffeinated\SEO\Facades\Metadata::class,
```

And that's it! With your coffee in reach, start building up your SEO!
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "5.0.*",
"illuminate/http": "5.0.*"
"php": ">=5.5.9",
"illuminate/support": "5.1.*",
"illuminate/http": "5.1.*"
},
"require-dev": {
"phpspec/phpspec": "~2.0"
},
"autoload": {
"psr-0": {
"Caffeinated\\SEO": "src/"
"psr-4": {
"Caffeinated\\SEO\\": "src/Caffeinated/SEO/"
}
},
"extra": {
Expand Down

0 comments on commit b709521

Please sign in to comment.