Download the PHP package mawsis/nebula-php without Composer

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

Nebula PHP

Nebula is a PHP 8 MVC framework written from scratch to understand how modern frameworks actually work under the hood (dependency injection, routing, an ORM, middleware, validation) without hiding any of it behind magic. The entire core is ~2,600 lines across 50 focused classes with only three runtime dependencies (dotenv, Monolog, firebase/php-jwt), so it is small enough to read in an afternoon and real enough to build a JSON API or a server-rendered app with. It is installable via Composer as mawsis/nebula-php.

Features

Requirements

Quick Start

Scaffold a new application with the Nebula Installer:

Or pull the core into an existing project:

A minimal front controller looks like this:

See Nebula-Example for a complete application skeleton (config, providers, routes, controllers, migrations, views, Docker setup).

Usage

Routing

Routes take a closure or a [Controller::class, 'method'] pair, plus an optional list of middleware aliases:

Controller methods are resolved through the container, so dependencies are injected by type hint:

Models and queries

A model declares its table, attributes, and primary key; the base class does the rest:

Validation

Declare rules on a Request subclass. String rules are resolved through config/validations.php, and anything after : is passed to the rule's constructor; you can also pass rule objects or write your own by extending BaseValidation:

Type-hint the request in a controller action and call validated(); on failure it throws a ValidationException, which the central handler turns into a 422 JSON response with per-field errors:

Middleware

Middleware aliases are defined once in config/middlewares.php and referenced by name in routes:

A custom middleware is one class with one method; it halts the request by throwing a typed exception:

Design

Everything in Nebula is deliberately hand-rolled to expose the mechanics that larger frameworks abstract away:

Ecosystem

Repository Description
Nebula-Installer nebula new CLI for scaffolding new applications
Nebula-Example Full example application built on the framework

License

Released under the MIT License.


All versions of nebula-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
vlucas/phpdotenv Version ^5.6
monolog/monolog Version ^3.8
firebase/php-jwt Version ^6.11
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 mawsis/nebula-php contains the following files

Loading the files please wait ...