PHPackages                             almacil/php-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. [Framework](/categories/framework)
4. /
5. almacil/php-core

ActiveLibrary[Framework](/categories/framework)

almacil/php-core
================

Framework PHP para el desarrollo de aplicaciones web y APIs.

1.6.0(2y ago)0976MITPHPPHP &gt;=7.0.0

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rubenperezlopez/almacil-php-core)[ Packagist](https://packagist.org/packages/almacil/php-core)[ GitHub Sponsors](https://github.com/rubenperezlopez)[ RSS](/packages/almacil-php-core/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (21)Used By (0)

[![GitHub last commit](https://camo.githubusercontent.com/5297b7b988398cc0917e8fa4759790d23422d09d7882aee9f47f11b2345875f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f7265)](https://camo.githubusercontent.com/5297b7b988398cc0917e8fa4759790d23422d09d7882aee9f47f11b2345875f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f7265)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/316e0e0d395f1883e2adf58366999448d1e6c6075aa1317b11b919c665c4ae32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f72653f6c6162656c3d6c61737425323076657273696f6e)](https://camo.githubusercontent.com/316e0e0d395f1883e2adf58366999448d1e6c6075aa1317b11b919c665c4ae32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f72653f6c6162656c3d6c61737425323076657273696f6e)[![Packagist PHP Version Support](https://camo.githubusercontent.com/9a1c25d58fd9717c0017eba782d3b5006630a8f6ad8600fcdac33ffb189f885f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c6d6163696c2f7068702d636f7265)](https://camo.githubusercontent.com/9a1c25d58fd9717c0017eba782d3b5006630a8f6ad8600fcdac33ffb189f885f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c6d6163696c2f7068702d636f7265)[![GitHub](https://camo.githubusercontent.com/14878313983c6c31e3bb49c40e7eca99681f5f0012863c24c8647aec32438bbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f7265)](https://camo.githubusercontent.com/14878313983c6c31e3bb49c40e7eca99681f5f0012863c24c8647aec32438bbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f727562656e706572657a6c6f70657a2f616c6d6163696c2d7068702d636f7265)

♥️ Almacil PHP Core
===================

[](#️-almacil-php-core)

This is a **simple MVC framework** written in PHP for rapid development of small projects.

*Do you want to contribute?*
[![Donate 1€](https://camo.githubusercontent.com/e9f10e402d347eae203f34b35b454643412c5923154e1d43b9475c32c32114cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532306d6525323061253230636f666665652d312545322538322541432d627269676874677265656e3f6c6f676f3d6275796d6561636f66666565266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d67726579267374796c653d666f722d7468652d6261646765)](https://www.paypal.com/paypalme/rubenperezlopez/1?target=_blank)

Features
--------

[](#features)

- Routes
- Internationalization
- Database
- Cache
- HTTP Requests
- Minimum dependencies

Installation
------------

[](#installation)

Installation is possible using Composer

```
composer require almacil/php-core
```

Usage
-----

[](#usage)

Create an instance of \\Almacil\\App:

```
// Require composer autoloader
require __DIR__ . '/vendor/autoload.php';

$rootDir = __DIR__;
$configFile = 'app.config.json';

// Create de instance
$app = new \Almacil\App($rootDir, $configFile);
```

app.config.json example
-----------------------

[](#appconfigjson-example)

```
{
  "display_errors": true,
  "languages": [
    "es_ES",
    "en_GB"
  ],
  "timezone": "Europe/Madrid",

  "spa": {
    "enabled": true
  },
  "cache": {
    "enabled": true,
    "directory": "disk/cache",
    "time": 10
  },
  "database": {
    "enabled": true,
    "directory": "disk/database/",
    "extension": "json"
  },
  "http": { // Developing
    "enabled": true,
    "defaultPrefix": ""
  },
  "translate": {
    "enabled": true,
    "directory": "disk/i18n/",
    "findMissingTranslations": false
  },
  "router": {
    "enabled": true,
    "routesFile": "app.routes.json"
  },

  "environments": {
    "baseFile": "environments/base.json",
    "production": {
      "domain": "id.core.almacil.com",
      "propertiesFile": "environments/production.json"
    },
    "development": {
      "domain": "localhost:8000",
      "propertiesFile": "environments/development.json"
    }
  }
}
```

**display\_errors**: true | false
Con el valor en *true* se mostrarán los errores de PHP, útil para depuración. En producción se recomienda ponerlo en *false*.

**languages**: array
Definimos un array con los idiomas válidos para nuestra aplicación web. Almacil Core recupera el idioma del navegador del usuario y, si es necesario, lo redirecciona para poner la abreviación del idioma en el primer segmento de la url.

**timezone**: string
Define el timezone de PHP.

**spa**: object
 **enabled**: true | false
 Esta funcionalidad permite navegar a través de la aplicación web sin refrescar la página.
 Más información [aquí](#spa).

**cache**: object
 **enabled**: true | false
 **directory**: string
 **time**: number

### SPA (Single Page Application)

[](#spa-single-page-application)

Podemos hacer lo siguiente con Javascript para cambiar de página:

```
const route = '/contact';
captain.navigate(route);
```

app.routes.json example
-----------------------

[](#approutesjson-example)

```
{
  "middlewares": [
    "middlewares/variables"
  ],
  "default": {
    "responseType": "html",
    "head": "layout/head",
    "beforeContent": "layout/before-content",
    "afterContent": "layout/after-content",
  },
  "routes": [
    {
      "path": "/contact",
      "component": "pages/contact"
    },
    {
      "path": "/articles",
      "component": "pages/articles",
      "cache": {
        "enabled": false
      },
      "data": {}
    },
    {
      "path": "/articles/{article_id}",
      "component": "pages/article",
      "data": {
          "pageType": "article"
      }
    },
    {
      "path": "/",
      "component": "pages/home",
      "cache": {
        "enabled": true,
        "time": 60, // seconds
      }
    }
  ],
  "notFound": {
    "component": "pages/404"
  }
}
```

> Writting in my spare time...

*Do you want to contribute?*
[![Donate 1€](https://camo.githubusercontent.com/e9f10e402d347eae203f34b35b454643412c5923154e1d43b9475c32c32114cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532306d6525323061253230636f666665652d312545322538322541432d627269676874677265656e3f6c6f676f3d6275796d6561636f66666565266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d67726579267374796c653d666f722d7468652d6261646765)](https://www.paypal.com/paypalme/rubenperezlopez/1?target=_blank)

---

Made with ❤️ by developer for developers

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~42 days

Recently: every ~132 days

Total

20

Last Release

994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f0782da3f221895ff5593718ad68bf60aacf897dffb9dc462929346fc16e105?d=identicon)[rubenperezlopez](/maintainers/rubenperezlopez)

---

Top Contributors

[![rubenperezlopez](https://avatars.githubusercontent.com/u/26804440?v=4)](https://github.com/rubenperezlopez "rubenperezlopez (1 commits)")

### Embed Badge

![Health badge](/badges/almacil-php-core/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

716214.1M933](/packages/laravel-prompts)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)

PHPackages © 2026

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