webrium / core
PHP Framework
Installs: 880
Dependents: 5
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/webrium/core
Requires
- php: ^8
Requires (Dev)
- phpunit/phpunit: ^9.6
- dev-master
- 3.0.3
- 3.0.1
- 3.0.0
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0-beta-2
- 2.0.0-beta
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- v0.2.9.x-dev
- 0.2.9
- v0.2.8.x-dev
- 0.2.8
- 0.2.7
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.1
- 0.0.56
- 0.0.55
- 0.0.51
- 0.0.50
- 0.0.49
- 0.0.48
- 0.0.47
- 0.0.46
- 0.0.45
- 0.0.44
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.32
- 0.0.28
- 0.0.26
- 0.0.24
- 0.0.22
- 0.0.20
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.14
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.8
- 0.0.7
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-dev-core3
- dev-update027v
- dev-Add-Header-Class
- dev-improve-form-validation
- dev-beta
- dev-new_cache_development
This package is auto-updated.
Last update: 2025-12-04 15:17:06 UTC
README
Webrium Core
Webrium Core has a set of features that make site development simpler and faster. Core is used to develop the Webrium framework, but if needed, all or part of its features can be used in other projects. Webrium Core includes facilities such as routes, file upload and download, session management, etc
1) install Webrium Core
composer require webrium/core
2) Create the index.php file
index.php
<?php // Load Composer autoloader require_once __DIR__ . '/../vendor/autoload.php'; // Import required classes use Webrium\App; use Webrium\Debug; use Webrium\Route; // Enable error display for debugging Debug::enableErrorDisplay(true); // Disable error logging to file Debug::enableErrorLogging(false); // Set application root path App::setRootPath(__DIR__); // Define home route Route::get('/', function () { return ['message' => 'Hello World']; }); // Start routing Route::run();
3) Create the .htaccess file in app
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>