Download the PHP package apex/syrus without Composer

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

Syrus Template Engine

A light weight, extensible template engine designed with separation of duties in mind, allowing both back-end developers and designers to complete their work independently. It supports:

Installation

Install via Composer with:

composer require apex/syrus

Table of Contents

  1. Designers
    1. Getting Started
    2. File / Directory Structure
      1. Theme Structure
      2. Body Content Pages
      3. Public Assets
    3. Yield / Var Tags
    4. Variables, foreach, and if / else Tags
    5. <s:...> Template Tags
    6. Using Multiple Themes
  2. Developers
    1. Syrus class / Container Definitions
      1. site.yml Configuration File
    2. Render Templates
      1. Auto-Routing
      2. Executing Per Template PHP Files
      3. Utilizing RPC Calls
    3. Variables, Blocks and Callouts
    4. Content Loader (breadcrumbs, social media links, placeholders)
    5. Creating New <s...> Functional Tags
    6. StackElement Object
    7. Dummy Data for Designers
    8. Caching

Local Server

Get Syrus up and running with the default web site by running the following command within the ~/public/ directory:

php -S 127.0.0.1:8180

The default site including tag examples will now be available at http://127.0.0.1:8180/. Alternatively, if you have docker-compose installed you may achieve the same by running the following command:

sudo docker-compose up -d

Basic Usage

use Apex\Syrus\Syrus;

// Start
$syrus = new Syrus();

// Assign some variables
$syrus->assign('name', 'value');

// Assign array
$location = [
    'city' => 'Toronto', 
    'province' => 'Ontario', 
    'country' => 'Canada'
];
$syrus->assign('loc', $location);

// Add foreach blocks
$syrus->addBlock('users', ['username' => 'jsmith', 'email' => '[email protected]']);
$syrus->addBlock('users', ['username' => 'mike', 'email' => '[email protected]']);

// ADd error callout
$this->addCallout('Uh oh, there was a problem.', 'error');

// Render template
echo $syrus->render('contact.html');

// Or, use auto-routing and render template based on URI being viewed.
echo $syrus->render();

Support

If you have any questions, issues or feedback for Syrus, please feel free to drop a note on the ApexPl Reddit sub for a prompt and helpful response.

Follow Apex

Loads of good things coming in the near future including new quality open source packages, more advanced articles / tutorials that go over down to earth useful topics, et al. Stay informed by joining the mailing list on our web site, or follow along on Twitter at @mdizak1.


All versions of syrus with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/yaml Version ^6.0 | ^7.0
symfony/string Version ^6.0 | ^7.0
psr/cache Version ^1.0 | ^2.0
apex/container Version ^2.0
league/uri Version ^6.0 | ^7.3
brick/phonenumber Version ^0.4
michelf/php-markdown Version ^2.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 apex/syrus contains the following files

Loading the files please wait ....