omnisense / skeleton
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)
Requires
- php: ^8.4
- omnibridge/symfony: ^3.4
- omnisense/omnibase: ^7.4
- symfony/console: ^8.2
- symfony/dotenv: ^8.2
- symfony/flex: ^2.0
- symfony/framework-bundle: ^8.2
- symfony/runtime: ^8.2
- symfony/security-bundle: ^8.2
- symfony/twig-bundle: ^8.2
- symfony/yaml: ^8.2
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0
- symfony/browser-kit: ^8.2
- symfony/css-selector: ^8.2
Suggests
- omnibridge/doctrine: A database on Doctrine - SQLite, MariaDB/MySQL, PostgreSQL - with doctrine/doctrine-bundle (^4.0)
- omnibridge/eloquent: A database on Eloquent's layer instead of Doctrine, behind the same contracts (^2.1)
- omnibridge/laravel: The same App\ actions and templates hosted by Laravel instead of Symfony (^2.1)
- omnipack/admin: The back office under /admin: dashboard, menus, generated CRUDs (^2.1)
- omnipack/agenda: Events and venues: the agenda page, ICS feeds and imports, calendar links (^2.1)
- omnipack/blog: Posts and visitors' comments (^2.1)
- omnipack/booking: Stays booking: listings, calendars, nightly and seasonal prices (^3.0)
- omnipack/broadcast: A broadcast's site: programme, episodes, performances (^2.1)
- omnipack/classroom: An open classroom: levels, subjects, sequences, resources (^3.0)
- omnipack/company: The company's register identity, its deadlines and their reminders (^1.1)
- omnipack/consent: The cookie and consent panel (^2.2)
- omnipack/consulting: An independent professional's services and the quote request (^2.1)
- omnipack/docs: Documentation read from Markdown files, in the back office and in public (^3.1)
- omnipack/drive: A site's own cloud of folders and files, shared by name (^2.1)
- omnipack/estate: Property management: buildings, units, leases, tenants, rent calls (^2.1)
- omnipack/faq: Questions by section, answered in the back office (^2.1)
- omnipack/forge: Software and its versions, builds, downloads and a publish API (^3.0)
- omnipack/forum: A discussion forum: categories, topics, posts, moderation (^2.1)
- omnipack/gallery: Albums of photographs (^2.1)
- omnipack/health: A health practice on omnipack/office: practitioners and patients (^2.1)
- omnipack/ledger: Double-entry accounting: books, journals, bank feeds, reconciliation (^2.1)
- omnipack/legal: The legal professions' sites, one profile each (^2.1)
- omnipack/mailbox: Private messaging between members (^3.0)
- omnipack/marketplace: Stores, products, carts, orders and payment gateways (^3.0)
- omnipack/music: A musician's site: discography, repertoire, player (^3.1)
- omnipack/newsletter: Subscribers with double opt-in and campaigns (^3.0)
- omnipack/office: A professional practice: team, hours, appointments, document vault (^3.0)
- omnipack/press: A press kit: quotes, photographs, biographies (^2.1)
- omnipack/restaurant: A restaurant: dining room, meal services, table reservations (^3.0)
- omnipack/scholar: A researcher's site: publications read from the scholarly registers (^2.1)
- omnipack/social: Social publishing: reels published on each network (^2.1)
- omnipack/video: A video platform: uploads, transcoding, channels, player (^3.0)
Provides
None
Conflicts
Replaces
None
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.