-
Notifications
You must be signed in to change notification settings - Fork 2
License
paooolino/WebEngine
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# Installing composer require paooolino/webengine:dev-master # Usage ## index.php require("vendor/autoload.php"); $engine = new \WebEngine\WebEngine(); $engine->addPage("/", function() { return [ "template" => "page.php", "data" => [ "content" => "Hello, world!" ] ]; }); $engine->run(); ## templates/default/page.php <h1>{{content}}</h1> # Serving php -S locahost:8000 # For developers **composer start** starts the php built-in server for localhost:8000 pointing to the example/ directory **composer phpunit** launch tests for the main WebEngine class and generate code coverage in coverage/engine **composer phpunit_plugins** launch tests for plugins and generate code coverage in coverage/plugins **composer generatedoc** generate docs in the doc/ directory **composer phpcbf** auto-correct source code to match pear standards **compose phpcs** check for errors in code standars
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published