MayoMayn
BestDev
- Oct 18, 2016
- 1,423
- 683
What is Siberia?
Siberia is a micro PHP framework built for web developer enthusiasts, that love to code their own back-end, but at the same time can't bother to code another 100+ features.
It includes features as:
Website is currently under construction:
#UPDATES
Code Snippets of usage:
Siberia is a micro PHP framework built for web developer enthusiasts, that love to code their own back-end, but at the same time can't bother to code another 100+ features.
It includes features as:
- MVC
- Class autoloader by defined namespaces with Composer
- MongoDB wrapper
- PDO wrapper
- Encrypted session control
- Storage
- Models
- Requests
- CSRF validation
- Ready to go with ajax
- VPN / Proxy / Hosting detection
- Authenticator
- API
Website is currently under construction:
You must be registered for see links
#UPDATES
- Added Git Repository:
You must be registered for see links
- Added Composer Package
You must be registered for see links
Code Snippets of usage:
index.php
User Model
PHP:
define('__ROOT__', dirname(__FILE__));
// Require composer autoload
require_once __DIR__ . '/vendor/autoload.php';
// Require app autoload
$class = new Siberia\Autoload();
// Require external website settings
require_once __DIR__ . '/App/Config/System.php';
$app = $class->get('Siberia\Kernel\App');
$app->init();
User Model
PHP:
namespace Siberia\App\Model;
use Siberia\Database\Mongo;
class User
{
protected $users;
public function __construct()
{
$this->users = Mongo::select('Users');
}
public function nameTaken($user)
{
$result = $this->users->count(['username' => $user]);
return ($result > 0);
}
public function emailTaken($email)
{
$result = $this->users->count(['mail' => $email]);
return ($result > 0);
}
}
Last edited: