Skip to content

Commit

Permalink
πŸ‘‰ Change something make this great again πŸš€ πŸ˜‚
Browse files Browse the repository at this point in the history
  • Loading branch information
trungpv1601 committed Sep 1, 2018
1 parent bfb8172 commit a4a437d
Show file tree
Hide file tree
Showing 262 changed files with 2,322 additions and 291 deletions.
26 changes: 26 additions & 0 deletions .htaccess
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>
49 changes: 49 additions & 0 deletions README.MD
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 ;)
22 changes: 13 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
"name": "trungpv1601/PigFramework",
"description": "Custom framework with PHP packages",
"require": {
"nikic/fast-route": "^1.0",
"league/container": "^2.2",
"symfony/http-foundation": "^3.2",
"symfony/var-dumper": "^3.2",
"nikic/fast-route": "^1.3",
"league/container": "^3.2",
"symfony/http-foundation": "^3.4",
"symfony/var-dumper": "^3.4",
"filp/whoops": "^2.1",
"vlucas/phpdotenv": "^2.4",
"catfan/Medoo": "^1.4",
"league/plates": "^3.3"
"vlucas/phpdotenv": "^2.5",
"league/plates": "^3.3",
"illuminate/database": "5.1.8",
"rakit/validation": "^0.18.1",
"jasongrimes/paginator": "^1.0",
"fzaninotto/faker": "^1.8",
"nesbot/carbon": "^1.33"
},
"autoload": {
"psr-4": {
"App\\": "app/"
"App\\": "core/app/"
},
"files" : ["helpers.php"]
"files" : ["core/helpers.php"]
}
}
Loading

0 comments on commit a4a437d

Please sign in to comment.