rosasurfer / ministruts Goto Github PK
View Code? Open in Web Editor NEWPHP MVC micro framework inspired by Java Struts
License: Do What The F*ck You Want To Public License
PHP MVC micro framework inspired by Java Struts
License: Do What The F*ck You Want To Public License
In some places directories are defined as APPLICATION_ROOT.'/{hard-coded-value}'
. As to not to enforce a pre-defined directory layout all such definitions need to be made configurable and resolved dynamically.
Known occurrences:
// MiniStruts::getConfigDir()
$dir = APPLICATION_ROOT.'/etc/config';
// FileSystemCache
$directory = APPLICATION_ROOT.'/etc/cache/'.$label;
// Module
$resourceDirectories[] = APPLICATION_ROOT.'/app/view';
// VersionedUrl
$fileName = APPLICATION_ROOT.'/www/'.$this->uri;
If the framework is used in a context using old style class loading (via _autoload() function) class loading of the context (not the framework's) fails. An existing __autoload() function must be pushed into the SPL loader queue.
Where possible replace Composer's class loader with the case-insensitive built-in class loader to become compatible with PHP standards. This especially if autoload
is set to classmap
(recommended in production). At the moment the built-in class loader is not used if Composer was loaded first.
@see http:// github.com/composer/composer/issues/1803
The argument of a single call to strToLower() being a performance penalty in the context of loading, parsing and compiling a full PHP unit is non-sense. Even with an opcode cache the difference is not measurable.
Approaches and bugs:
@see http://stackoverflow.com/questions/20235922/how-to-add-case-insensitive-autoloading-using-composer-generated-classmap
@see http://stackoverflow.com/questions/14097152/spl-autoload-not-loading-case-sensitivity
@see https:// github.com/composer/composer/issues/4209#issuecomment-563672383
Should we wrap loading in a try-catch block? Loaders are not allowed to trigger any errors but static initializers might do so anyway.
Replace the pushed default vars in views with instance facades.
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.