Search by

omnisense / skeleton

GlitchArt

A minimal application on omnisense/omnibase: `composer create-project omnisense/skeleton my-app` gives a working, nearly empty application written on Base\ and App\, hosted by Symfony through omnibridge/symfony, without a database until one is added (omnibridge/doctrine or omnibridge/eloquent)

Package info

github.com/glitchr-omnisense/skeleton

Type:project

pkg:composer/omnisense/skeleton

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-12-02 03:21 UTC

This package is not auto-updated.

Last update: 2026-12-02 07:12:12 UTC


README

A minimal application on omnisense/omnibase, the way symfony/skeleton is for Symfony: one command gives a working, nearly empty application.

composer create-project omnisense/skeleton my-app
cd my-app
php -S 127.0.0.1:8000 -t public      # or: symfony serve

Then open http://127.0.0.1:8000.

Requirements

PHP 8.4 with the extensions omnibase requires: bcmath, exif, igbinary, imagick, intl. Composer 2. No database: the application runs without one until one is added (below).

What you get

Path What it is
src/Controller/MainController.php The home page: a method whose #[Route] declares its address and which returns a Base\Screen\Template. It names Base\ classes only, never the framework's: the same controller runs under Symfony (omnibridge/symfony) and Laravel (omnibridge/laravel).
templates/home.html.twig Its template.
translations/ Its texts, in English (the default) and French. omnibase picks the visitor's language from the address, the LANG cookie or the browser.
config/packages/base.yaml omnibase's configuration (bin/console config:dump-reference base lists every option).
src/Kernel.php, public/index.php, bin/console, config/ The Symfony host's frame.

Base\ is what omnibase provides, App\ is the application: a class written at the same path under App\ (App\Entity\User for Base\Entity\User) replaces omnibase's, and every other App\ name is an alias of the Base\ class (bin/console base:mapping lists them).

Adding a database

The skeleton has none: omnibase serves its pages without a persistence, and what would keep a row (an account, a setting saved, a page view) is not there - a write asked of it says what to install. A persistence is added with Composer, on any database, and everything that needs one comes back without another change:

# Doctrine (SQLite, MariaDB/MySQL, PostgreSQL)
composer require omnibridge/doctrine doctrine/doctrine-bundle

In config/bundles.php, Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true] goes before Base\BaseBundle (Flex adds it at the end: move it up), and the connection is DATABASE_URL (.env.local, git-ignored), read by config/packages/doctrine.yaml (doctrine: { dbal: { url: '%env(resolve:DATABASE_URL)%' } }):

DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
DATABASE_URL="mysql://app:password@127.0.0.1:3306/app?serverVersion=11.4.2-MariaDB&charset=utf8mb4"   # MariaDB/MySQL
DATABASE_URL="postgresql://app:password@127.0.0.1:5432/app?serverVersion=16&charset=utf8"           # PostgreSQL

Or Eloquent, on the same DATABASE_URL, no Doctrine installed:

composer require omnibridge/eloquent

Then omnibase's tables, on either:

php bin/console omnibridge:schema:create              # an empty database
php bin/console omnibridge:schema:update --dump-sql   # then --force, after an upgrade

Both installed, base.persistence (config/packages/base.yaml: doctrine or eloquent) names the one to run on. The tests then need their database: tests/bootstrap.php is where its tables are created (a fresh SQLite file and omnibridge:schema:create, for instance).

Tests

vendor/bin/phpunit                  # no database: the home page, in English and in French
vendor/bin/phpstan analyse

Adding to it

The omnipack/* bundles are omnibase's applications (composer suggests lists them): a back office (omnipack/admin), a blog, an agenda, a shop (omnipack/marketplace)... A bundle is added with composer require, its class registered in config/bundles.php, after Base\BaseBundle; its configuration is in its own documentation.

License

MIT, see LICENSE.