Download the PHP package marrow/framework without Composer

On this page you can find all versions of the php package marrow/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package framework

Marrow # Marrow Framework The technical core of Marrow: dependency container, HMVC modules, HTTP routing, CLI, ORM, security, and application services. [![CI](https://img.shields.io/github/actions/workflow/status/marrow-framework/core/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/marrow-framework/core/actions/workflows/ci.yml) [![Packagist Version](https://img.shields.io/packagist/v/marrow/framework?style=flat-square&label=packagist)](https://packagist.org/packages/marrow/framework) [![Packagist Downloads](https://img.shields.io/packagist/dt/marrow/framework?style=flat-square&color=blue)](https://packagist.org/packages/marrow/framework) [![PHP 8.2+](https://img.shields.io/badge/PHP-8.2%2B-777BB4?style=flat-square&logo=php&logoColor=white)](https://php.net) [![License MIT](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)](LICENSE)

This repository contains the framework core. It is not a ready-to-use application project: for starting an application, it is recommended to use the associated skeleton repository.

Table of contents


About

Marrow is a PHP 8.2+ framework designed for modular, scalable, and testable applications. The project core includes the following building blocks:

The framework follows a modern architectural direction: clear separation of concerns, explicit dependencies, isolated modules, and service injection instead of global resolution.


Requirements

The framework core is distributed as a Composer package. The skeleton remains the simplest way to bootstrap a complete and coherent application.


Installation

Recommended option: use the skeleton

Direct package option


Framework architecture

The core is structured around a few central classes:

Folder structure


Container and dependency injection

Marrow relies on a dependency container that resolves services through reflection on PHP types. It supports:

Example:

The container also handles transitive dependencies and contextual resolution based on the calling module, which helps protect access to module providers.


Modules

A module is the main building block of Marrow. Each module is declared via the #[Module] attribute and has a two-phase lifecycle:

  1. register(): register bindings and module services;
  2. boot(): load routes, Twig namespaces, event listeners, and other runtime elements.

Example:

Module validation

The ModuleManager validates:

This ensures a module only starts when its dependencies are correctly declared and resolvable.


HTTP routing

Marrow’s router is fluent and framework-oriented. It supports:

Example:

Routing also relies on the container to instantiate controllers and inject the required dependencies.

Route also exposes two chainable shortcuts for the two most common middleware cases:

A module doesn't have to live under the application's local modules/ directory either — see Package ecosystem.


ORM and database

Marrow includes a model-oriented ORM without exposing a generic query builder as the primary design layer. Model classes can define attributes, casts, relationships, and scopes.

Example:

Included features:


Security and middleware

The framework exposes a shared middleware pipeline for HTTP requests. Middlewares can be declared in a classic style (handle) or using a hook pattern (processRequest, processResponse, processException).

This enables handling:

Security configuration is typed through ShieldConfig, and HTTP concerns are separated from application logic to keep the system more readable and maintainable.


CLI

The core includes a set of Symfony Console commands useful for generating modules, managing migrations, inspecting routes, and starting the development server.

Typical commands:

The command system is extensible and can also register module-specific commands.


Health checks

Health\HealthManager aggregates pluggable probes (database, cache, disk space, queue backlog) into one report, meant to be exposed behind a /health route for load balancers, uptime monitors, or container orchestrators:

Thresholds are configured per check in config/health.php. Writing a custom check is a two-method interface (name(), run(): HealthResult) — see the full guide in docs/health.md.


Package ecosystem

A module isn't limited to the application's local modules/ directory: BaseModule::path() resolves Views/, routes.php, and migrations by reflecting on the module class's own file location, so a module ships just as well from vendor/. Installing a package that declares its module in its own composer.json (extra.marrow.modules) is enough on its own — PackageDiscovery picks it up automatically at boot, no edit to config/modules.php required.

Official companion packages built on this mechanism, each an independent, self-documented Composer package (own README.md/LICENSE, installable on its own):

Package Purpose
marrow/form-builder Django-style declarative forms — define fields on the backend, render and validate them without duplicating rules on the frontend
marrow/anvil Local Docker Compose development environment (Sail's role, under its own name)
marrow/ai-context Generates AGENTS.md — a live map of routes/modules/config for AI coding agents and new contributors

See Modules (HMVC) for how the discovery mechanism itself works, if you want to ship your own.


Repository structure

This repository is a framework package. For a complete application project, it is preferable to use the corresponding skeleton, which provides the base runtime structure, modules, and configuration files.


Testing and quality

The project is configured for automated validation:

The scripts are defined in composer.json, including:


Contributing

Contributions are welcome in line with the project conventions:

Recommended workflow

Then open a PR with a concise description of the feature or bug fix.


Marrow aims to provide a solid foundation for modular, testable, and maintainable PHP applications without relying on excessive abstractions or opaque conventions.


Made with ❤️ by [Aure Dulvresse](https://github.com/AureDulvresse)

All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
doctrine/dbal Version ^4.4
firebase/php-jwt Version ^7.0
league/flysystem Version ^3.29
monolog/monolog Version ^3.10
symfony/cache Version ^7.0
symfony/console Version ^7.0
symfony/http-client Version ^7.0
symfony/http-foundation Version ^7.0
symfony/mailer Version ^7.0
symfony/process Version ^7.0
symfony/rate-limiter Version ^7.0
symfony/var-dumper Version ^7.0
twig/twig Version ^3.27
vlucas/phpdotenv Version ^5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marrow/framework contains the following files

Loading the files please wait ...