Download the PHP package reinvanoyen/aegis without Composer

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

The flexible and extendable PHP templating language

Build Status

Important: Experimental software

Aegis is still in experimental mode, which means using this in production might not be the best idea. Please consider contributing if you want to make this software more stable.

Introduction

Aegis is a flexible, dynamic templating language. It aims to be truly extendable. It comes with a default set of functionalities to help you with the basics of creating web layouts (template inheritance, printing data, iteration helpers, etc). However, if you decide to implement your own nodes and use it as a language with a completely different purpose, you're encouraged to do so.

Installation

Default runtime documentation

Printing data

Block

The block tag defines a container which can hold more template code. Each time a block tag is used, the content of that container is outputted.

In the above example two block tags, each with a unique name, were used. The above would output:

This is nothing spectacular, it get more interesting as we modify the contents of these blocks by using the options append or prepend like in the example below.

The above example modifies the contents of the "title" and "baseline" block by appending and prepending content. The output would be:

Remember that every use of the block tag also outputs the content, even if the tag modifies the content. All modifications to the content of a block are executed first, so the output of a block will always be the output after all the modifications have executed. This can be confusing at first, but once you get the hang of it, it can provide you with great flexibility.

The contents of a block can be completely overwritten by simply using the block tag with new content, like so:

This would output:

Emptying a block is possible by using the block tag with no content at all:

The above example would simply output nothing at all.

Extends

The extends tag brings in a template from another file, provides functionality to manipulate the blocks provided by that template and outputs the results. In comparison to many template engines an Aegis template is not limited to one extends tag. This makes it possible to use the extends tag as some sort of mixin, like in the example below where the header and footer templates are used as smaller parts of the bigger picture.

header.tpl

footer.tpl

layout.tpl

While it's perfectly fine to restrict yourself to only extend from one template at a time, just like you could in other popular template engines, splitting up you templates in smaller parts like demonstrated above could give you advantages in flexibility later on. Since expressions in the default runtime of Aegis are evaluated at runtime, we could do something like this:

home-header.tpl

default-header.tpl

layout.tpl

The layout template would now extend one of the header templates based on the value of the variable "page", for instance when the header should be different for each page of a website.

If, else and elseif

The if tag allows for conditional rendering within templates.

For

Creating your own runtime

Coming soon...

Contributing

Feel free to contribute to Aegis, any help is greatly appreciated. Please keep your coding style compatible with PSR-2 and back your code with unit tests.

License

Aegis is open-sourced software licensed under the BSD-3-Clause.


All versions of aegis with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
friendsofphp/php-cs-fixer Version ^2.15
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 reinvanoyen/aegis contains the following files

Loading the files please wait ....