Download the PHP package aura/system without Composer

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

Aura System

Build Status

The Aura System provides a full-stack Aura framework built around Aura library packages.

Getting Started

Installation

Install via Composer to a {$PROJECT_PATH} of your choosing:

composer create-project aura/system {$PROJECT_PATH}

This will create the system skeleton and install all of the necessary packages.

Once you have installed the Aura system, start the built-in PHP server with an Aura.Framework command:

cd {$PROJECT_PATH}
php package/Aura.Framework/cli/server

You can then open a browser and go to http://0.0.0.0:8000 to see the "Hello World!" demo output.

Press Ctrl-C to stop the built-in PHP server.

Additionally, you can run a command-line test:

cd {$PROJECT_PATH}
php package/Aura.Framework_Demo/cli/hello

You should see "Hello World!" as the output.

Run The Tests

For testing, you need to have PHPUnit 3.7 or later installed.

To run the integration tests for the system as a whole, change to the tests directory and issue phpunit:

cd {$PROJECT_PATH}/tests
phpunit

To run the unit tests for a package, change to that package's tests directory and issue phpunit:

cd {$PROJECT_PATH}/package/Aura.Autoload/tests
phpunit

Web Server

To run Aura under Apache or another web server, add a virtual host to your web server configuration, then point its document root to {$PROJECT_PATH}/web.

If mod_rewrite or an equivalent module is installed on the server, you will be able to browse without needing index.php in the URL.

Remove the Demo Package

When you are satisifed that the installation is working, edit the composer.json file to remove the aura/framework-demo package requirement and then run composer update.

System Organization

The system directory structure is pretty straightforward:

{$PROJECT_PATH}/
    config/                     # mode-specific config files
        _mode                   # the config mode to use
        _packages               # load these packages in order
        default.php             # default config
        dev.php                 # shared development server config
        local.php               # local development server config
        prod.php                # production config
        stage.php               # staging config
        test.php                # testing config
    include/                    # application include-path directory
    package/                    # aura-package libraries
    tests/                      # system tests
    tmp/                        # temporary files
    vendor/                     # composer vendors
    web/                        # web server document root
        .htaccess               # mod_rewrite rules
        cache/                  # public cached files
        favicon.ico             # favicon to reduce error_log lines
        index.php               # bootstrap script

Writing A Page Controller

Let's create a package and a page controller, and wire it up for browsing. We will do so in a project-specific way, leaving out the complexities of creating an independent package for distribution.

Warning: If you have not removed the Framework_Demo package yet, please do so before continuing. Otherwise, your routes will not work correctly.

Create The Controller

Change to the include/ directory and create a location for the example package and a space for our first web page ...

cd {$PROJECT_PATH}/include
mkdir -p Example/Package/Web/Home
cd Example/Package/Web/Home

... then create a file called HomePage.php. Add this code for a bare-bones index action:

Create The View

Next, create a view for the index action in a file called views/index.php and add the following code to it

At this point your include/ directory should look like this:

include/
    Example
        Package/
            Web/
                Home/
                    HomePage.php
                    views/
                        index.php

N.b.: Technically you don't need a directory structure this deep. However, a structure like this makes it easy to add new pages as well as other support libraries without having to change the project organization later.

Configure The System

Now we need to wire up the page controller to the autoloader and the routing system. Change to the system config directory:

$ cd {$PROJECT_PATH}/config

Edit the default.php file and add this code at the end of the file:

Try It Out

You should now be able to browse to the / URL to see "This is an example home page."


All versions of system with dependencies

PHP Build Version
Package Version
Requires aura/installer-system Version ~1.0
aura/autoload Version ~1.0
aura/cli Version ~1.0
aura/di Version ~1.0
aura/filter Version ~1.0
aura/http Version ~1.0
aura/input Version ~1.0
aura/intl Version ~1.0
aura/marshal Version ~1.0
aura/router Version ~1.0
aura/session Version ~1.0
aura/signal Version ~1.0
aura/sql Version ~1.0
aura/uri Version ~1.0
aura/view Version ~1.0
aura/web Version ~1.0
aura/framework Version ~1.0
aura/framework-demo 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 aura/system contains the following files

Loading the files please wait ....