Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 119 | All time: 9,519 This week: 571 |
Version | License | PHP version | Categories | |||
paymentmng 1.0.0 | The PHP License | 5 | PHP 5, Finances |
<?php |
this is payment management web app develloped
in angularjs ,w3.css
the route allow to access speciphic pages of the aaplucaion according to the configuration and your need.
- /
: this is the root of the aplication after login.
- /login
: this route allow to acces the login page;
- /addAgent
: this route help to create a new agent as admin;
- /detailEmployee
: this route allow to access detail of a selected employee;
- /listEmployee
: this route help to get a list of all the employee;
- /config
: this route help to access the configuration pages af the aplication;
php with #WEPESI library
this library help design mvc web application in simple way of doing things.
there are 3 important folder:
* route : where you define all the route, and call a specific controller (class) methode to execute an operation, on where all validation took place before do an operation.
* controller : where you define all your controller, and where you can call all you model (class) with interact with the database
* class: on this folder there are one folder app
, the one you dont need care about(don't modify if you dont know what you are doing
), this folder is the core of the libray,
then, can create your file out of that folder. id where you will find class of model.
Is where you define all you route to reach
find out all route define to do operation on the index.php
<?php
$route=new Router(); // create new instance of the router
//create the default `GET` route when reaching the home routing
$route->get('/',function(){
// echo "welcom to the beggining";
Response::send("welcome to the Payment Management API"); // return a wecom message whille connect
});
//include other routing for a better accessibility
//user routing
include("user.php");
include("departement.php");
$route->run(); //run the routing method to be execute
?>
as you can see on this exemple bellow. it provide example on how the libray. for more detail you can check wepesy libray documentation.
<?php
$route->post('/users/login', "userCtrl#connexion");
?>
This a simple example of the login route to log a user /users/login
,
userCtrl#connexion
is a methode has been call to execute the operation on the controller.
as you can see with have the class userCrl
and inside we have the methode connexion
that help to connect a user.
find out a file name sentinel
, import it into your your database call sentinel
phpmyadmin.
you can change the database name.
to change the database name with your own.
go into api\config\global.php
from there you can change
define("HOST", "localhost"); //you set the host: where is locate your server. for this exemple is on localhost
define("DATABASE", "sentinel"); // `sentinel` is the database by default.
define("USER", "root"); //`root` is the user by default you can changer with yours
define("PASSWORD", ""); //the password is empty by default
Files (71) | / | .vscode |
File | Role | Description |
---|---|---|
launch.json | Data | Auxiliary data |
settings.json | Data | Auxiliary data |
Files (71) | / | api |
Files (71) | / | api | / | class |
Files (71) | / | api | / | class | / | app |
File | Role | Description | ||
---|---|---|---|---|
db (4 files) | ||||
local (1 file) | ||||
route (2 files) | ||||
BoxMessage.php | Class | Class source | ||
Bundles.php | Class | Class source | ||
Config.php | Class | Class source | ||
Controller.php | Class | Class source | ||
Export.php | Class | Class source | ||
Hash.php | Class | Class source | ||
Input.php | Class | Class source | ||
Media.php | Class | Class source | ||
Redirect.php | Class | Class source | ||
Response.php | Class | Class source | ||
Session.php | Class | Class source | ||
Token.php | Class | Class source | ||
Validate.php | Class | Class source | ||
View.php | Class | Class source |
Files (71) | / | api | / | class | / | app | / | db |
File | Role | Description |
---|---|---|
DB.php | Class | Class source |
DBQeury.php | Class | Class source |
DBSelect.php | Class | Class source |
QueryParams.php | Class | Class source |
Files (71) | / | api | / | class | / | app | / | route |
File | Role | Description |
---|---|---|
Route.php | Class | Class source |
Router.php | Class | Class source |
Files (71) | / | api | / | class | / | model |
File | Role | Description |
---|---|---|
configurations.php | Class | Class source |
users.php | Class | Class source |
Files (71) | / | api | / | config |
File | Role | Description |
---|---|---|
config.ini | Data | Auxiliary data |
connection.php | Example | Example script |
cors.php | Aux. | Auxiliary script |
global.php | Example | Example script |
init.php | Aux. | Auxiliary script |
sentinell.sql | Data | Auxiliary data |
Files (71) | / | api | / | controller |
File | Role | Description |
---|---|---|
departementCtrl.php | Class | Class source |
function.php | Aux. | Auxiliary script |
userCtrl.php | Class | Class source |
validateToken.php | Class | Class source |
Files (71) | / | api | / | lang |
Files (71) | / | api | / | route |
File | Role | Description |
---|---|---|
departement.php | Example | Example script |
index.php | Example | Example script |
user.php | Example | Example script |
Files (71) | / | front |
File | Role | Description | ||
---|---|---|---|---|
css (2 files, 1 directory) | ||||
js (4 files) | ||||
lib (3 files) | ||||
template (6 files, 1 directory) | ||||
index.html | Doc. | Documentation |
Files (71) | / | front | / | css |
File | Role | Description | ||
---|---|---|---|---|
font-awesome-4.7.0 (2 directories) | ||||
index.css | Data | Auxiliary data | ||
w3.css | Data | Auxiliary data |
Files (71) | / | front | / | css | / | font-awesome-4.7.0 | / | css |
File | Role | Description |
---|---|---|
font-awesome.css | Data | Auxiliary data |
font-awesome.min.css | Data | Auxiliary data |
Files (71) | / | front | / | css | / | font-awesome-4.7.0 | / | fonts |
File | Role | Description |
---|---|---|
fontawesome-webfont.svg | Data | Auxiliary data |
Files (71) | / | front | / | js |
File | Role | Description |
---|---|---|
index.js | Data | Auxiliary data |
iniApp.js | Data | Auxiliary data |
services.js | Data | Auxiliary data |
w3.js | Data | Auxiliary data |
Files (71) | / | front | / | lib |
File | Role | Description |
---|---|---|
angular-route.min.js | Data | Auxiliary data |
angular-sanitize.min.js | Data | Auxiliary data |
angular.min.js | Data | Auxiliary data |
Files (71) | / | front | / | template |
File | Role | Description | ||
---|---|---|---|---|
message (4 files) | ||||
addAgent.html | Doc. | Documentation | ||
config.html | Doc. | Documentation | ||
detailEmployee.html | Doc. | Documentation | ||
home.html | Doc. | Documentation | ||
listEmployee.html | Doc. | Documentation | ||
login.html | Doc. | Documentation |
Files (71) | / | front | / | template | / | message |
File | Role | Description |
---|---|---|
alert.html | Doc. | Documentation |
confirm.html | Doc. | Documentation |
danger.html | Doc. | Documentation |
succes.html | Doc. | Documentation |
Files (71) | / | nbproject |
File | Role | Description |
---|---|---|
project.properties | Data | Auxiliary data |
project.xml | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.