Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
public
storage/database
.gitignore
LICENSE
README.md
ROUTES.md
composer.json
nginx-vhost.conf.sample

README.md

SIMPLE API

INDONESIA POSTAL CODE & AREA

This contains database postal code & area.

@see https://github.com/pentagonal/Indonesia-Postal-Code

REQUIREMENT

  • php 7.0 or later
  • php pdo & sqlite extension
  • php json extension
  • Web server nginx or apache with mod_rewrite enabled

COMPOSER DEPENDENCY

{
  "slim/slim": "^3.12",
  "pentagonal/database-dbal": "^1"
}

APPLICATION

see ROUTES.md

Set server environment (to get via getenv()) to 'DEVELOPMENT_MODE=1'

STRUCTURES

Document root placed on public directory

(root)/
    ├── app/                    (path of application container, middleware and routes file)
    │    ├── Container.php      (File for Container / Dependency Injection)
    │    ├── Middleware.php     (File for Middleware)
    │    └── Routes.php         (File For Routes)
    │
    ├── public/                 (Path of document root)
    │    └── index.php          (File index root)
    │
    └─── storage/                (Directory to stored data storage)
          └── database/                     (Directory to store database files)       
            └── sqlite_provinces.sqlite     (Provinces & Postal Code database file)

AUTHOR

PURPOSE FOR

LICENSE

GPL v3 or later

You can’t perform that action at this time.