Download the PHP package jyoungblood/stereo-render without Composer

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

STEREO Render

PHP abstraction functions to help more easily render views for Slim Framework (v4) with plain text, HTML, JSON, and Blade (using BladeOne)

These functions aim to provide a simplified and standardized interface for rendering various types of data-driven responses as PSR-7 objects for use with Slim.

Although this package can be used with any Slim4 project, it's specifically designed for use with the STEREO internet toolkit.

Installation

Easy install with composer:

Requirements

Usage

render::html($request, $response, $string, $status = 200)

Renders a string as HTML. Returns a standard Slim (PSR-7) response object with optional HTTP status code (200 by default).

Additionally, a path to an HTML file (relative to the public web root) can be specified to load and render instead of a string:

render::text($request, $response, $string, $status = 200)

Renders a string as plain text. Returns a standard Slim (PSR-7) response object with optional HTTP status code (200 by default).

render::redirect($request, $response, $string, $status = 302)

Renders a redirect as standard Slim (PSR-7) response object with optional HTTP status code.

render::json($request, $response, $data, $status = 200)

Renders an array or data as standard Slim (PSR-7) response object with application/json content type and optional HTTP status code.

render::blade($request, $response, $parameters, $status = 200)

Renders a specific Blade template with an array of data. Returns a standard Slim (PSR-7) response object with optional HTTP status code (200 by default).

The Blade compiler expects views and cache files to be directories called views and cache, respectively, in the public web root. These defaults, along with the compilation mode, can be customized in your .env file:

The compilation mode can be set to AUTO (default), SLOW, FAST, or DEBUG, see the BladeOne source for more information.

Check out the BladeOne and official Blade documentation to see everything you can do with this incredible templating syntax.

The BladeOne HTML Extension is also included for conveniently creating form components with near-native performance.

render::blade_template($parameters)

Renders a specicific Blade template with data array the same as render::blade(), but returns raw html instead of a PSR-7 response.


All versions of stereo-render with dependencies

PHP Build Version
Package Version
Requires eftec/bladeone Version ^4.13
eftec/bladeonehtml Version ^2.4
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 jyoungblood/stereo-render contains the following files

Loading the files please wait ....