2017 © Pedro Peláez
 

library user-model

image

jgermade/user-model

  • Friday, March 6, 2015
  • by jgermade
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

UserModel(.php)

UserModel - Provides an automated method to access user data., (*1)

Copyright (C) 2014 Jesús Manuel Germade Castiñeiras, (*2)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License., (*3)

=======, (*4)

How to use
require("UserModel.php");
$user = new UserModel();

if( $user->isLogged() ) {

  echoJSON([ "items" => $user->model("items")->get() ]);

} else {

  http_response_code(403);
  echoJSON([ "error" => "unauthorized" ]);

}

The Versions

06/03 2015

dev-master

9999999-dev

  Sources   Download

MIT

by Jesús Germade