PHPackages                             devkussema/semantica-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. devkussema/semantica-core

ActiveLibrary

devkussema/semantica-core
=========================

Semantica Framework Core - Modern OOP PHP framework engine

v1.0.0(7mo ago)021MITPHPPHP &gt;=8.0

Since Sep 28Pushed 7mo agoCompare

[ Source](https://github.com/devkussema/semantica-core)[ Packagist](https://packagist.org/packages/devkussema/semantica-core)[ RSS](/packages/devkussema-semantica-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

Semantica Framework - Core
==========================

[](#semantica-framework---core)

[![PHP Version](https://camo.githubusercontent.com/2f6f9af2e917cbf5786673e8e4ed8d0d9b29be6131327a992063e69136a93411/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d626c7565)](https://camo.githubusercontent.com/2f6f9af2e917cbf5786673e8e4ed8d0d9b29be6131327a992063e69136a93411/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d626c7565)[![License](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)[![Version](https://camo.githubusercontent.com/cefc9c9d19cbada1d17e038309423356279ecc06ca94458dbef3f47b7194c0d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e302d6f72616e6765)](https://camo.githubusercontent.com/cefc9c9d19cbada1d17e038309423356279ecc06ca94458dbef3f47b7194c0d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e302d6f72616e6765)

> The powerful core engine of Semantica Framework - A modern, object-oriented PHP framework inspired by Laravel's elegance and simplicity.

🎯 About
-------

[](#-about)

Semantica Core is the heart of the Semantica Framework, providing:

- **Modern OOP Architecture** with dependency injection container
- **Flexible Database Management** supporting multiple simultaneous connections (MySQL, PostgreSQL, SQLite)
- **Dynamic Template System** with theme switching capabilities
- **HTTP Layer** with modern Request/Response handling
- **Routing System** with fluent API and named routes
- **CLI Infrastructure** for command-line tools
- **Configuration Management** with environment variable support

🏗️ Components
-------------

[](#️-components)

### Core Classes

[](#core-classes)

- `Application` - Main application container and bootstrap
- `Container` - Dependency injection container
- `ConfigManager` - Configuration and environment handling

### Database

[](#database)

- `DatabaseManager` - Multi-connection database management
- Support for MySQL, PostgreSQL, SQLite

### HTTP &amp; Routing

[](#http--routing)

- `Request` - HTTP request abstraction
- `Response` - HTTP response with JSON support
- `Router` - Modern routing with groups and middleware support
- `Route` - Individual route with constraints and naming

### Templates

[](#templates)

- `TemplateManager` - Dynamic theme system
- Support for multiple themes and layouts
- Variable injection and partial rendering

### Console

[](#console)

- `CommandManager` - CLI command registration and execution
- `CommandInterface` - Interface for custom commands

🚀 Features
----------

[](#-features)

### Multi-Database Support

[](#multi-database-support)

```
$db = new DatabaseManager($config);

// Default connection
$users = $db->fetch("SELECT * FROM users");

// Specific connection
$products = $db->fetch("SELECT * FROM products", [], 'shop_db');

// Transactions
$db->beginTransaction();
$db->execute("INSERT INTO users (name) VALUES (?)", ['João']);
$db->commit();
```

### Dynamic Templates

[](#dynamic-templates)

```
$template = new TemplateManager($basePath, $config);

// Switch themes dynamically
$template->setTheme('admin_v1');

// Render with layout
$html = $template->renderWithLayout('users.index', $data);
```

### Modern Routing

[](#modern-routing)

```
$router = new Router();

// Named routes with constraints
$router->get('/users/{id}', 'UserController@show')
    ->name('users.show')
    ->where('id', '\d+');

// Route groups
$router->group(['prefix' => 'api'], function($router) {
    $router->get('/status', 'ApiController@status');
});
```

📦 Installation
--------------

[](#-installation)

This is the core package and should not be installed directly. Use the application skeleton instead:

```
composer create-project semantica/app my-project
```

For manual installation in existing projects:

```
composer require semantica/core
```

🔧 Requirements
--------------

[](#-requirements)

- PHP 8.0 or higher
- PDO extension for database support
- JSON extension

📖 Documentation
---------------

[](#-documentation)

Full documentation is available in the main application skeleton repository.

🤝 Contributing
--------------

[](#-contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

📄 License
---------

[](#-license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

👨‍💻 Author
----------

[](#‍-author)

**Augusto Kussema**

- Email:
- GitHub: [@augustokussema](https://github.com/augustokussema)

🌍 Made in Angola
----------------

[](#-made-in-angola)

Desenvolvido com ❤️ em Angola 🇦🇴

---

*Semantica Framework - Modern PHP development made simple*

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance62

Regular maintenance activity

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

233d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/371c3557370623a460b7a11609c3b9c040d7fec0c504657533a79f76a667d684?d=identicon)[devkussema](/maintainers/devkussema)

---

Top Contributors

[![devkussema](https://avatars.githubusercontent.com/u/134053350?v=4)](https://github.com/devkussema "devkussema (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devkussema-semantica-core/health.svg)

```
[![Health](https://phpackages.com/badges/devkussema-semantica-core/health.svg)](https://phpackages.com/packages/devkussema-semantica-core)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
