Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
802581b1d2 | |||
1093d127bf |
@ -5,10 +5,12 @@ Hermes is a small package to handle redirects, routing, and autoloading. This li
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install simply use the composer command:
|
To install, simply use the composer command:
|
||||||
|
|
||||||
`php composer.phar require thetempusproject/hermes`
|
`php composer.phar require thetempusproject/hermes`
|
||||||
|
|
||||||
|
`composer require thetempusproject/hermes`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Typical usage would be through including the package via composer.
|
Typical usage would be through including the package via composer.
|
||||||
@ -45,9 +47,7 @@ if ( ! defined( 'HERMES_AUTOLOADED' ) ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! App::$isAdmin ) {
|
Redirect::home();
|
||||||
return Redirect::home();
|
|
||||||
}
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Uses the Hermes autoloader if it has been defined.
|
* Uses the Hermes autoloader if it has been defined.
|
||||||
*
|
*
|
||||||
* @version 1.0.4
|
* @version 1.0.5
|
||||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||||
* @link https://TheTempusProject.com/libraries/Hermes
|
* @link https://TheTempusProject.com/libraries/Hermes
|
||||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This should provide a simple way to add autoloading.
|
* This should provide a simple way to add autoloading.
|
||||||
*
|
*
|
||||||
* @version 1.0.4
|
* @version 1.0.5
|
||||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||||
* @link https://TheTempusProject.com/libraries/Hermes
|
* @link https://TheTempusProject.com/libraries/Hermes
|
||||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"keywords":
|
"keywords":
|
||||||
[
|
[
|
||||||
|
"thetempusproject",
|
||||||
"php",
|
"php",
|
||||||
"tools",
|
"tools",
|
||||||
"routing",
|
"autoloader",
|
||||||
"thetempusproject"
|
"routing"
|
||||||
],
|
],
|
||||||
"homepage": "https://git.thetempusproject.com/the-tempus-project/hermes",
|
"homepage": "https://thetempusproject.com/libraries/hermes",
|
||||||
"authors":
|
"authors":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This class is used for header modification and page redirection.
|
* This class is used for header modification and page redirection.
|
||||||
*
|
*
|
||||||
* @version 1.0.4
|
* @version 1.0.5
|
||||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||||
* @link https://TheTempusProject.com/libraries/Hermes
|
* @link https://TheTempusProject.com/libraries/Hermes
|
||||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* This class is used to return file and directory locations.
|
* This class is used to return file and directory locations.
|
||||||
*
|
*
|
||||||
* @version 1.0.4
|
* @version 1.0.5
|
||||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||||
* @link https://TheTempusProject.com/libraries/Hermes
|
* @link https://TheTempusProject.com/libraries/Hermes
|
||||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||||
|
Reference in New Issue
Block a user