Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit be474dd

Browse files
Moved to the MIT license
1 parent 515d0ec commit be474dd

12 files changed

Lines changed: 63 additions & 281 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CHANGE LOG
55
## V1.0.2 (Upcoming)
66

77
* Removed the cs fixers
8+
* CS fixes
9+
* Moved to the MIT license
810

911

1012
## V1.0.1 (19/10/2014)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2015 Graham Campbell <graham@mineuk.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

LICENSE.md

Lines changed: 0 additions & 176 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Laravel Navigation
22
==================
33

4-
Laravel Navigation was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a navigation bar generator for [Laravel 4.2](http://laravel.com). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-Navigation/releases), [license](LICENSE.md), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).
4+
Laravel Navigation was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a navigation bar generator for [Laravel 4.2](http://laravel.com). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Laravel-Navigation/releases), [license](LICENSE), [api docs](http://docs.grahamjcampbell.co.uk), and [contribution guidelines](CONTRIBUTING.md).
55

66
![Laravel Navigation](https://cloud.githubusercontent.com/assets/2829600/4432310/c15b15ba-468c-11e4-8ced-33d809c3b209.PNG)
77

88
<p align="center">
99
<a href="https://travis-ci.org/GrahamCampbell/Laravel-Navigation"><img src="https://img.shields.io/travis/GrahamCampbell/Laravel-Navigation/master.svg?style=flat-square" alt="Build Status"></img></a>
1010
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Coverage Status"></img></a>
1111
<a href="https://scrutinizer-ci.com/g/GrahamCampbell/Laravel-Navigation"><img src="https://img.shields.io/scrutinizer/g/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Quality Score"></img></a>
12-
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg?style=flat-square" alt="Software License"></img></a>
12+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Software License"></img></a>
1313
<a href="https://github.com/GrahamCampbell/Laravel-Navigation/releases"><img src="https://img.shields.io/github/release/GrahamCampbell/Laravel-Navigation.svg?style=flat-square" alt="Latest Version"></img></a>
1414
</p>
1515

@@ -50,7 +50,7 @@ Laravel Navigation requires no configuration. Just follow the simple install ins
5050

5151
This is the class of most interest. It is bound to the ioc container as `'navigation'` and can be accessed using the `Facades\Navigation` facade. There are three public methods of interest.
5252

53-
The `'addToMain'` and `'addToBar'` methods will add the item to the internal main navigation array in the specified way. These methods both accept three arguments. All but the first are optional. The first argument must be an array. It must have either a `'slug'` key or a `'url'` key where the slug is the target url relative to the base url, and the url is a full url you may specify (useful to link to somewhere outside the application). It must also have a `'title'` key which will specify the title, and you may also optionally add an `'icon'` key which will at the relevant icon from font awesome to the mix. The second parameter specifies which navigation bar you want to add to. By default this is `'default'`, but you may have mutliple navigation bars, for example, [Bootstrap CMS](https://github.com/GrahamCampbell/Bootstrap-CMS) has an `'admin'` navigation bar. The final parameter specifies if the item should be prepended to the internal array. By default this is `false`.
53+
The `'addToMain'` and `'addToBar'` methods will add the item to the internal main navigation array in the specified way. These methods both accept three arguments. All but the first are optional. The first argument must be an array. It must have either a `'slug'` key or a `'url'` key where the slug is the target url relative to the base url, and the url is a full url you may specify (useful to link to somewhere outside the application). It must also have a `'title'` key which will specify the title, and you may also optionally add an `'icon'` key which will at the relevant icon from font awesome to the mix. The second parameter specifies which navigation bar you want to add to. By default this is `'default'`, but you may have mutliple navigation bars, for example, [Bootstrap CMS](https://github.com/BootstrapCMS/CMS) has an `'admin'` navigation bar. The final parameter specifies if the item should be prepended to the internal array. By default this is `false`.
5454

5555
The third method is `'render'`, and accepts three arguments. All arguments are optional. The fist argument selects the main navigation bar you which to return. By default this is set to `'default'`. The third argument selection the bar navigation bar you wish to return. By default this is set to `false`, where by no bar navigation is returned. You may set this to any string to return the relevant navigation bar. The final parameter is an array of variables you wish to pass to the navigation view. The default is `array('title' => 'Navigation', 'side' => 'dropdown', 'inverse' => true)`.
5656

@@ -70,23 +70,7 @@ This class contains no public methods of interest. This class should be added to
7070

7171
Feel free to check out the [API Documentation](http://docs.grahamjcampbell.co.uk) for Laravel Navigation.
7272

73-
You may see an example of implementation in [Bootstrap CMS](https://github.com/GrahamCampbell/Bootstrap-CMS).
74-
7573

7674
## License
7775

78-
Apache License
79-
80-
Copyright 2013-2014 Graham Campbell
81-
82-
Licensed under the Apache License, Version 2.0 (the "License");
83-
you may not use this file except in compliance with the License.
84-
You may obtain a copy of the License at
85-
86-
http://www.apache.org/licenses/LICENSE-2.0
87-
88-
Unless required by applicable law or agreed to in writing, software
89-
distributed under the License is distributed on an "AS IS" BASIS,
90-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
91-
See the License for the specific language governing permissions and
92-
limitations under the License.
76+
Laravel Navigation is licensed under [The MIT License (MIT)](LICENSE).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "graham-campbell/navigation",
33
"description": "Navigation Is A Navigation Bar Generator For Laravel 4.2",
44
"keywords": ["laravel", "framework", "navigation generator", "navigation", "navigation bar", "Navigation", "Laravel Navigation", "Laravel-Navigation", "Graham Campbell", "GrahamCampbell"],
5-
"license": "Apache-2.0",
5+
"license": "MIT",
66
"authors": [
77
{
88
"name": "Graham Campbell",

src/Facades/Navigation.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<?php
22

33
/*
4-
* This file is part of Laravel Navigation by Graham Campbell.
4+
* This file is part of Laravel Navigation.
55
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at http://bit.ly/UWsjkb.
6+
* (c) Graham Campbell <graham@mineuk.com>
97
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
1510
*/
1611

1712
namespace GrahamCampbell\Navigation\Facades;
@@ -21,9 +16,7 @@
2116
/**
2217
* This is the navigation facade class.
2318
*
24-
* @author Graham Campbell <graham@mineuk.com>
25-
* @copyright 2013-2014 Graham Campbell
26-
* @license <https://github.com/GrahamCampbell/Laravel-Navigation/blob/master/LICENSE.md> Apache 2.0
19+
* @author Graham Campbell <graham@mineuk.com>
2720
*/
2821
class Navigation extends Facade
2922
{

0 commit comments

Comments
 (0)