velliz / pukoframework Goto Github PK
View Code? Open in Web Editor NEWFramework for quick PHP WEB, API and Console App development *scaffolds and generators included.
Home Page: https://pukoframework.github.io
License: MIT License
Framework for quick PHP WEB, API and Console App development *scaffolds and generators included.
Home Page: https://pukoframework.github.io
License: MIT License
Originally, expired is defined as constant variable in Auth Abstract Class
const EXPIRED_ON_CLOSE = null;
const EXPIRED_1_HOUR = 3600;
const EXPIRED_1_DAY = 86400;
const EXPIRED_1_WEEK = 604800;
const EXPIRED_1_MONTH = 2592000;
That constant used with this technique:
Session::Get(Tamu::Instance())->Login($param['username'], $param['password'], Auth::EXPIRED_1_DAY);
Cookies::Get(Tamu::Instance())->Login($param['username'], $param['password'], Auth::EXPIRED_1_DAY);
Bearer::Get(Tamu::Instance())->Login($param['username'], $param['password'], Auth::EXPIRED_1_DAY);
Later, variable expired introduced on config/encryption.php
on line "expired = 30" but seems the implementation still not complete across all Auth classes.
Glossary:
Q: expired is set in 30 by default as? hour? day? minute? seconds?
A: Wee will make it as minute.
In puko, all error trowed as exceptions. Will great if puko can have another like:
And also:
Until now, pukoframework don't have transactional feature, so i decided to add this function in next release into the PDA section on this framework.
Usage demonstration in my head so far,,, archived in 3 different way:
$transaction = DBI::Transactional('primary');
$x = new obj();
...
$x->save($transaction);
...
$y->modify($transaction);
...
$transaction->commit();
$transaction->cancel();
$pk = 'id';
$data = [...];
$id = [...];
DBI::Prepare('users', 'primary')->Save($data, $pk, $transaction);
DBI::Prepare('users', 'primary')->Update($id, $data, $transaction);
DBI::Prepare('users', 'primary')->Delete($id, $transaction);
$transaction->commit();
//or
$transaction->cancel();
$result = DBI::Transactional('primary', function($DBI) {
$x = new obj();
...
$x->save($DBI);
...
$y->modify($DBI);
...
});
A lot of works happens in DBI class. Witch i must move out the $dbi
instance out. So the object is being reusable in the transaction lifecycle.
Let's see if there was a progress in here.
Most requested feature.
Master HTML layout can assigned via:
@template master url_to_file
Outer tag {!Name} also replacing tag {!Name} in loop section.
{!Name}
<!--{!Members}-->
{!Name}
<!--{/Members}-->
So, for now we must have unique value tag to patch this issue.
DBI class.
DBI->Prepare($sql)->GetData($user, $pass);
has potential SQL injection with key
'=''or'
'
and many SQL keywords.
this must fixed ASAP!
Apakah ada dokumentasi penggunaan framework puko?
Until version 1.0.3 puko framework is throwing error if view file is not found or empty.
Enhancement:
Bisakah saya berhkontribusi? jika iya, bagian mana yang perlu penanganan. Sepertinya framework anda bagus. Namun lebih bagus jika dikelola lebih dari satu orang. Supaya lebih berkembang
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.