2017 © Pedro Peláez
 

project japloora

Just Another PHP Lightweight Object Oriented RestAPI

image

drdam/japloora

Just Another PHP Lightweight Object Oriented RestAPI

  • Monday, July 23, 2018
  • by DrDam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Japloora

Just Another PHP Lightweight Object Oriented RestAPI

Introduction

Japloora are a try to make a little API with REST-FULL capacity., (*1)

Purpose

The way to use are simple : - A controler defined route caracteristics ( path, scheme, method, HTML parameters, callback, output format) and implement callback method responding to Request - A controler can defined multiple route - Route can be "wildcarded" ( "get/type/*" ) - A controler can precise a "wildcarded" route of another controler - Using a basic and "light" Authent mecanisme, (*2)

Get started

  • Get package with composer(japloora/japloora ),
  • Copy "exemple" folder's files on to the Apache DocumentRoot.
  • Add Apache read/write on "AuthentDB" and "init" folder
  • In init Folder, edit init.yml change login/password of Authent Super Admin
  • Try exemple URLs

Identification

Japloora not make Authentification, it only make identification.
That mean a user can be identify via a JWT token composed with :, (*3)

  • header almgorithme declaration : "HS256",
  • payload :
    • "sub" parameter : site_key
    • "use" parameter : my_username
    • "iat" parameter : timestamp in token creation
  • secret key are a SHA256 encrytption of
    • SHA256 encrytpted user_password concatenated with timestamp ( 'iat' paremeter)

A token are valid for only 15min. It's recommanded gerenate a new on each call Parameters ( site_key, username and user_password ) are exchange out-of-line and the password where never send from client to server, (*4)

The Versions

23/07 2018

dev-master

9999999-dev

Just Another PHP Lightweight Object Oriented RestAPI

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Avatar DrDam