-
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.
π Change something make this great again π π
- Loading branch information
1 parent
bfb8172
commit a4a437d
Showing
262 changed files
with
2,322 additions
and
291 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,26 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
# Redirect Trailing Slashes... | ||
RewriteRule ^(.*)/$ /$1 [L,R=301] | ||
|
||
# Handle Front Controller... | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^ index.php [L] | ||
</IfModule> | ||
|
||
# Disable Directory listing | ||
Options -Indexes | ||
|
||
# block files which needs to be hidden // in here specify .example extension of the file | ||
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$"> | ||
Order allow,deny | ||
Deny from all | ||
</Files> | ||
|
||
# in here specify full file name sperator '|' | ||
<Files ~ "(artisan)$"> | ||
Order allow,deny | ||
Deny from all | ||
</Files> |
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,49 @@ | ||
# Pig Framework | ||
|
||
### Custom framework with PHP packages | ||
|
||
<b>Notice: This project not Good. So, I use it for myself ;)</b> | ||
|
||
## 1. How to setup this project | ||
|
||
- Just create database and import file database.sql | ||
``` | ||
Username: admin | ||
Password: admin | ||
``` | ||
- Change correct infomation about Username & Password MYSQL in file .env | ||
``` | ||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=PigFramework | ||
DB_USERNAME=root | ||
DB_PASSWORD=secret | ||
``` | ||
- Change APP_URL and APP_NAME in file .env, | ||
``` | ||
APP_NAME='Pig Framework' | ||
APP_DEBUG=true | ||
APP_URL=http://localhost:8000 | ||
``` | ||
- APP_DEBUG above true if you want show error, false if not. | ||
|
||
|
||
## 2. Some package I use in this project: | ||
- [nikic/fast-route](https://github.com/nikic/FastRoute): Route | ||
- [league/container](https://github.com/thephpleague/container): Manage container | ||
- [symfony/http-foundation](https://github.com/symfony/http-foundation): Request, Response | ||
- [filp/whoops](https://github.com/filp/whoops): Manage error message | ||
- [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv): .env file | ||
- [league/plates](https://github.com/thephpleague/plates): Native PHP template | ||
- [illuminate/database](https://github.com/illuminate/database): Database Eloquent like Laravel | ||
- [rakit/validation](https://github.com/rakit/validation): Validate Input | ||
- [jasongrimes/paginator](https://github.com/jasongrimes/php-paginator): Paginator ;) | ||
|
||
### I use [AdminLTE](https://adminlte.io/themes/AdminLTE/index2.html) for UI. I Love this UI. | ||
|
||
Thanks | ||
|
||
I'm lazy. So, Just use package :D | ||
|
||
Have a great day ;) |
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
Oops, something went wrong.