-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Sep 26, 2018
0 parents
commit 2831f97
Showing
19 changed files
with
2,739 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/vendor/ | ||
/logs/* | ||
!/logs/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<IfModule mod_rewrite.c> | ||
<IfModule mod_negotiation.c> | ||
Options -MultiViews | ||
</IfModule> | ||
|
||
RewriteEngine On | ||
RewriteBase /celeste/ | ||
|
||
# Redirect Trailing Slashes... | ||
RewriteRule ^(.*)/$ /$1 [L,R=301] | ||
|
||
# Whitelist only index.php, robots.txt, and those start with public/ or api/ or remote | ||
RewriteRule ^(?!($|index\.php|robots\.txt|(public|api)/|remote)) - [R=404,L] | ||
|
||
# Handle Front Controller... | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule .* index.php [L] | ||
</IfModule> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# How to Contribute | ||
|
||
## Pull Requests | ||
|
||
1. Fork the Slim Skeleton repository | ||
2. Create a new branch for each feature or improvement | ||
3. Send a pull request from each feature branch to the **3.x** branch | ||
|
||
It is very important to separate new features or improvements into separate feature branches, and to send a | ||
pull request for each branch. This allows us to review and pull in new features or improvements individually. | ||
|
||
## Style Guide | ||
|
||
All pull requests must adhere to the [PSR-2 standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Slim Framework 3 Skeleton Application | ||
|
||
Use this skeleton application to quickly setup and start working on a new Slim Framework 3 application. This application uses the latest Slim 3 with the PHP-View template renderer. It also uses the Monolog logger. | ||
|
||
This skeleton application was built for Composer. This makes setting up a new Slim Framework application quick and easy. | ||
|
||
## Install the Application | ||
|
||
Run this command from the directory in which you want to install your new Slim Framework application. | ||
|
||
php composer.phar create-project slim/slim-skeleton [my-app-name] | ||
|
||
Replace `[my-app-name]` with the desired directory name for your new application. You'll want to: | ||
|
||
* Point your virtual host document root to your new application's `public/` directory. | ||
* Ensure `logs/` is web writeable. | ||
|
||
To run the application in development, you can run these commands | ||
|
||
cd [my-app-name] | ||
php composer.phar start | ||
|
||
Run this command in the application directory to run the test suite | ||
|
||
php composer.phar test | ||
|
||
That's it! Now go build something cool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "slim/slim-skeleton", | ||
"description": "A Slim Framework skeleton application for rapid development", | ||
"keywords": ["microframework", "rest", "router", "psr7"], | ||
"homepage": "http://github.com/slimphp/Slim-Skeleton", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Josh Lockhart", | ||
"email": "[email protected]", | ||
"homepage": "http://www.joshlockhart.com/" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5.0", | ||
"slim/slim": "^3.1", | ||
"slim/php-view": "^2.0", | ||
"monolog/monolog": "^1.17", | ||
"paragonie/seedspring": "^1.1", | ||
"slim/twig-view": "^2.4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": ">=4.8 < 6.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"process-timeout" : 0 | ||
}, | ||
"scripts": { | ||
"start": "php -S localhost:8080 -t public", | ||
"test": "phpunit" | ||
} | ||
|
||
} |
Oops, something went wrong.