Download the PHP package ceus-media/hydrogen-framework without Composer

On this page you can find all versions of the php package ceus-media/hydrogen-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 hydrogen-framework

HydrogenFramework

A PHP application framework using MVC, with design patterns and modules.

Package version Monthly downloads PHP version PHPStan level License Release date Commit date

This application framework for PHP is a simple yet powerful engine to develope custom web applications in MVC style.

A created frame (=empty application with framework and depencies) can be filled with life by installing modules from existing module sources or create you own module.

Installation

Create a project folder, step into it and create a composer project:

You need composer to be installed. If not, install composer globally or locally and run composer init or ./composer.phar init

Answer all information questions and skip definition of requirements.

Once done, include the framework:

There are three branches, for more information see Appendix.

Hymn

To be able to manage your project using the framework and its modules, you will need the CLI tool "hymn".

You can install hymn:

Globally

As local standalone

As project dependency

So, the hymn CLI command will differ depending on your installation type:

Hydrogen project

Now, create a hydrogen project using hymn:

Answer all information questions. Provide database credentials to access or even create a database. Skip configuration of composer since you already have this step. Skip configuration of PHPUnit for now.

You now have the hydrogen project file .hymn. This file will extend in the process and holds all information needed to (re-)install a constallation of defined and configured modules from defined sources.

Add local module source

Enter:

Add public modules of Ceus Media

To make use of existing modules to play around or, later, create real applications, you can use the public modules of Ceus Media. This module source contains about 300 modules, structured by category.

Install this library and register it as module source:

Enter:

Source check

Now, if you are running:

you can see the registered and indexed module sources.

There should be the two Local_Modules and CeusMedia_Public. Both sources are marked as active, so they are taken into account by hymn. The default source is the first one created. In this case Local_Modules. Installing a module will prefer the default source, if not specified otherwise.

Installing modules

Module categories

In the world of Hydrogen modules, there a several types of modules called category. Some module are very small and just provide one JavaScript file.

Others are complex and deliver:

Such rich modules are there to:

App modules combine several modules together to an executable web application. This may include:

Having a functional application, you can extend functionality by:

You can list available modules:

Display (all) details of a module:

Install a module and uninstallation:

Application

For this example, we will use the app module App_Site:

This will install a boilerblate web application with:

The CSS framework Bootstrap comes with the icon set of Font Awesome and installs:

One of the system components (a logger) can be configured to send e-mails on errors. Therefore a module capapble of sending mails will be installed automatically.

Since the sending of mails will by handled by a CLI script (to be decoupled from the web application), a mail queue will be introduced to a database and a job handling mechanism will be installed:

Finally

Create a logs folder and allow the web server to write to it. Could look like:

Now, open the project URL in a browser.

Sandbox application

If the installation is too much for you right now, you could checkout a simple sandbox installation.

Clone an empty application skeleton:

Afterwards change into project folder and run setup for development:

Create an empty database on your server, and maybe a database user beforehand.

Now you are ready to install application modules:

Appendix

The three branches

Installing branches

Latest stable development (dev-master), current on 0.8.x:

Latest 0.8.x current development branch:

Latest 0.9.x future development branch:

Module sources

A module source is a library of one or more modules. This library could be a GitHub repository, packaged by packagist and installable using composer Or any other online Git repository, shared or private.

Event System

Besides the usual Request->Dispatch->Render->Response behavior, a event system exists to inject module code with the bootstrap process. Therefore events can be attach on hooks, which will be called by the system during boot or later within modules.

Default Hook Calls

These hooks will be called by the system during boot:


All versions of hydrogen-framework with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 | ^8
ext-json Version *
ext-pdo Version *
ceus-media/cache Version *
ceus-media/common Version ^0.9 | ^1.0 | 0.9.x-dev | 1.0.x-dev
ceus-media/database Version ^0.5 | ^0.6 | 0.5.x-dev | 0.6.x-dev
ceus-media/template-engine Version dev-master
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 ceus-media/hydrogen-framework contains the following files

Loading the files please wait ....