feat: Complete Woles Framework v1.0 with enterprise-grade UI
- Add comprehensive error handling system with custom error pages - Implement professional enterprise-style design with Tailwind CSS - Create modular HMVC architecture with clean separation of concerns - Add security features: CSRF protection, XSS filtering, Argon2ID hashing - Include CLI tools for development workflow - Add error reporting dashboard with system monitoring - Implement responsive design with consistent slate color scheme - Replace all emoji icons with professional SVG icons - Add comprehensive test suite with PHPUnit - Include database migrations and seeders - Add proper exception handling with fallback pages - Implement template engine with custom syntax support - Add helper functions and facades for clean code - Include proper logging and debugging capabilities
This commit is contained in:
80
app/Config/app.php
Normal file
80
app/Config/app.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NovaCore Framework Application Configuration
|
||||
*/
|
||||
|
||||
return [
|
||||
'name' => env('APP_NAME', 'NovaCore Framework'),
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
'url' => env('APP_URL', 'http://localhost:8000'),
|
||||
'timezone' => 'UTC',
|
||||
'locale' => 'en',
|
||||
'fallback_locale' => 'en',
|
||||
'key' => env('APP_KEY', ''),
|
||||
'cipher' => 'AES-256-CBC',
|
||||
|
||||
'providers' => [
|
||||
// Core service providers
|
||||
App\Core\Providers\AppServiceProvider::class,
|
||||
App\Core\Providers\SecurityServiceProvider::class,
|
||||
],
|
||||
|
||||
'aliases' => [
|
||||
'App' => App\Core\Facades\App::class,
|
||||
'Request' => App\Core\Facades\Request::class,
|
||||
'Response' => App\Core\Facades\Response::class,
|
||||
'View' => App\Core\Facades\View::class,
|
||||
'Security' => App\Core\Facades\Security::class,
|
||||
],
|
||||
|
||||
'middleware' => [
|
||||
'web' => [
|
||||
App\Core\Middleware\SecurityMiddleware::class,
|
||||
App\Core\Middleware\CsrfMiddleware::class,
|
||||
],
|
||||
'api' => [
|
||||
App\Core\Middleware\SecurityMiddleware::class,
|
||||
],
|
||||
],
|
||||
|
||||
'session' => [
|
||||
'driver' => 'file',
|
||||
'lifetime' => env('SESSION_LIFETIME', 120),
|
||||
'expire_on_close' => false,
|
||||
'encrypt' => false,
|
||||
'files' => storage_path('sessions'),
|
||||
'connection' => null,
|
||||
'table' => 'sessions',
|
||||
'store' => null,
|
||||
'lottery' => [2, 100],
|
||||
'cookie' => 'novacore_session',
|
||||
'path' => '/',
|
||||
'domain' => null,
|
||||
'secure' => false,
|
||||
'http_only' => true,
|
||||
'same_site' => 'lax',
|
||||
],
|
||||
|
||||
'cache' => [
|
||||
'default' => env('CACHE_DRIVER', 'file'),
|
||||
'stores' => [
|
||||
'file' => [
|
||||
'driver' => 'file',
|
||||
'path' => storage_path('cache'),
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'logging' => [
|
||||
'default' => 'single',
|
||||
'channels' => [
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/error.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
60
app/Config/database.php
Normal file
60
app/Config/database.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NovaCore Framework Database Configuration
|
||||
*/
|
||||
|
||||
return [
|
||||
'default' => env('DB_CONNECTION', 'mysql'),
|
||||
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'novacore'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
'prefix' => '',
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
],
|
||||
],
|
||||
|
||||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'prefix' => '',
|
||||
],
|
||||
|
||||
'pgsql' => [
|
||||
'driver' => 'pgsql',
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '5432'),
|
||||
'database' => env('DB_DATABASE', 'novacore'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => 'utf8',
|
||||
'prefix' => '',
|
||||
'schema' => 'public',
|
||||
],
|
||||
],
|
||||
|
||||
'migrations' => 'migrations',
|
||||
|
||||
'redis' => [
|
||||
'client' => 'predis',
|
||||
'default' => [
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'password' => env('REDIS_PASSWORD', null),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'database' => 0,
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user