Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierre-fromager/pimapp
Sample App with Pimvc
https://github.com/pierre-fromager/pimapp
acl jwt openstreetmap php7 sql
Last synced: 14 days ago
JSON representation
Sample App with Pimvc
- Host: GitHub
- URL: https://github.com/pierre-fromager/pimapp
- Owner: pierre-fromager
- License: gpl-3.0
- Created: 2018-09-17T13:07:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T15:24:12.000Z (over 5 years ago)
- Last Synced: 2024-11-13T04:13:26.334Z (2 months ago)
- Topics: acl, jwt, openstreetmap, php7, sql
- Language: PHP
- Size: 1.88 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pimapp
**Sample App with Pimvc**
## Requirements
* php version >= 5.6.3
* composer installed## Setup
```bash
git clone https://github.com/pierre-fromager/pimapp.git
cd pimapp
composer install
chmod -R 777 src/App1/cache
chmod -R 777 src/App1/log
```import sql tables from fixtures/sql into your database.
## Config
Configure your env in src/App1/config
Create a virtual host with DocumentRoot to src.
Add RewriteEngine to on.
### Autoloading & deploy
Use autoloader cache level with -o or -a option (PSR-4).
```bash
composer dump-autoload -o
```
Keep in mind autoload dumping must be done after each change on envs.
Prefer -a for prod (hard caching) -o for dev (smart caching).
Check composer hook @src\App1\Commands\Composer\Installer for deploy triggering.
## Features### Http middlewares
* Acl (Access control list by roles).
* Jwt (Auth).
* Tokenizer (Auth).
* Restful (Hook router to match api's routes).### User
* Login.
* Logout.
* Register.
* Change password.
* Lost password.
* Crud complete.### Api
* Auth through jwt.
* Acl controlled.
* Restull compliant.### Home
* Landing page.
### Lang (i18n)
* Multilang ready (.csv).
* Autoselect language from request.
* Content translation in progress.### Database
* Model code generator.
* Model Domain code generator.
* Auto create tables from imported .csv files.
* Sqlite,Mysql,Pgsql ready.### Acl
* Acl front manager.
### File
* Remote file browser.
### Metro
#### Lignes
* Path search (graph method weighted or not).
* use OpenStreetMap.#### Stations
* use OpenStreetMap.
### Crud
* Complete CRUD from a single generic controller.
* Deep database meta's inspection for agnostic Field(s) usage.
* Sqlite,Mysql,Pgsql supported.## Links
Security policy allowed for non (CN,UA,TW,RU,VN,HK) countries, sorry for others.
* [Live](https://pimgit.pier-infor.fr)
* [Fwk stable](https://github.com/pierre-fromager/pimvc)
* [Roadmap](https://pimapp.pier-infor.fr)
* [Fwk nightly build](https://gogs.pier-infor.fr/pf.pier-infor.fr/pimvc)## Tricks
### Front
#### Osm
because of query cache mechanism involved, add symlink as below :
```bash
cd src/public/img/gis
ln -s ../../../App1/cache/img/gis/osm/metro ./osm
```#### Styles
* Adapt src/public/css/main.css
#### Behaviours
* Adapt src/public/js/main.js
### Back
Configuration is easy, all can be found in src/App1/config.
#### Envs
* dev.php: is the main entry for dev conf, check dev folder for detail.
* prod.php: is the main entry for dev conf, check prod folder for detail.Env strategy can be set from get_env using .htaccess or .user.ini file and changed in index.php.