Download the PHP package beauty-framework/core without Composer

On this page you can find all versions of the php package beauty-framework/core. 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 core

Beauty Core

The beauty-framework/core package is the foundation of the Beauty Framework β€” a PSR-compliant, high-performance runtime for building clean and maintainable REST and gRPC (todo) services. It brings together routing, middleware, dependency injection, event system, and configuration management into a modular and lightweight package optimized for use with RoadRunner.

Features


Installation


Usage

App Kernel

Kernel\App is the main entry point for your application. It boots the container, registers routes, middleware, events, and config, and starts request handling.

See in workers/http-worker.php in beauty-framework/app for a real-world example.


Routing System

beauty-framework/core includes an attribute-driven router with support for method-based route definitions and route-specific middleware.

Basic Example

Generate via CLI:


Dependency Injection (Container)

The framework uses a custom ContainerManager that wraps php-di and provides:


Configuration

Configuration is loaded from PHP files in config/*.php, and accessed via config function:

At runtime, the ConfigRegistry provides in-memory updates or overrides.


Event System

beauty-framework/core ships with a PSR-14-compatible event dispatcher. You can define events and listeners:

Event

Listener

Registering

Use ListenerRegistry:

Or generate via CLI:


🧡 Middleware

The router supports global and route-specific middleware using PSR-15-style interfaces.

You can also use attributes like #[Middleware([AuthMiddleware::class])] on controller classes or methods.

Generate with stubs:


CLI Kernel

Define and register commands in config/commands.php, and they’ll be loaded automatically by the console kernel:

Or generate with stubs:


Testing

Coming soon: feature and unit tests for routing, DI, config, and event dispatching.


PSR Compliance

Standard Status
PSR-1 βœ…
PSR-4 βœ…
PSR-7 βœ…
PSR-11 βœ…
PSR-15 βœ…
PSR-14 βœ…

Helpers


License

MIT


Contributing

Pull requests and discussions are welcome! Let's make this the most developer-friendly framework for building modern PHP services.


Related Modules


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
beauty-framework/http Version ^1.0
beauty-framework/cli Version ^1.0
spiral/roadrunner Version ^2024
spiral/roadrunner-http Version ^3.4.0
symfony/finder Version ^7.3
spiral/roadrunner-cli Version ^2.2
php-di/php-di Version ^7.0
vlucas/phpdotenv Version ^5.6
roadrunner-php/lock Version ^1.0
psr/event-dispatcher Version ^1.0
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 beauty-framework/core contains the following files

Loading the files please wait ...