https://github.com/kykurniawan/metime
Metime PHP
https://github.com/kykurniawan/metime
php web
Last synced: 3 months ago
JSON representation
Metime PHP
- Host: GitHub
- URL: https://github.com/kykurniawan/metime
- Owner: kykurniawan
- License: mit
- Created: 2022-08-10T12:48:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T15:17:58.000Z (almost 4 years ago)
- Last Synced: 2025-12-14T14:43:45.974Z (6 months ago)
- Topics: php, web
- Language: PHP
- Homepage: https://packagist.org/packages/kykurniawan/metime
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metime PHP
Express JS-like PHP framework
## Simple usage
```php
get("home", function (Req $req, Res $res) {
return $res->markdown("# Home Page")->send();
});
// Create application
$app = new App;
// Setup base url
$app->setBaseUrl("http://127.0.0.1/");
// Add router to the application
$app->addRouter($router);
// Run application
$app->run();
```