Skip to content
/ core Public

Webrium Core provides features for use in web frameworks and projects

License

Notifications You must be signed in to change notification settings

webrium/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Latest Unstable Version License

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

Documentation :

  1. install core
composer require webrium/core
  1. create the app Directory

  2. create the index.php file in app

index.php

<?php
require_once __DIR__ . '/../vendor/autoload.php';

use Webrium\App;
use Webrium\Debug;
use Webrium\Route;

Debug::showErrorsStatus(true);
Debug::writErrorsStatus(false);

// init index path
App::root(__DIR__);

Route::get('', function ()
{
  return ['message'=>'successful'];
});
  1. create the .htaccess file in app

.htaccess

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>

Try it now

Output (http://localhost/app/)

{"message":"successful"}

About

Webrium Core provides features for use in web frameworks and projects

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages