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