Download the PHP package jaypha/jayponents without Composer

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

Jayponents

Written by Jason den Dulk

Construct documents with heirarchical components.

Features

Requirements

PHP v7.1.0 or greater.

Installation

API

class Component

static void setDefaultEngine(TemplateEngineAdaptor $a)

Sets the default template engine. If none is provided, then PHP will be used.

void setEngine(TemplateEngineAdaptor $a)

Sets the template engine to be used for this component. If none is set, then the default engine set via setDefaultEngine will be used.

void setTemplate(string $template = null)

Sets the template file or string (if possible)

void setVars(array $values)

Sets all the values.

void set(string $name, mixed $value)

Sets a single value

void remove(string $name)

Removes a value stored under $name.

void add(mixed $value)

Adds a value without a name. Useful when no template is being used.

void clear()

Removes all values.

void display()

Prints the contents directly to the output.

string __toString()

Returns the contents as a string.

class PhpFileAdaptor

Adaptor to use PHP itself as the template engine.

class PhpTextAdaptor

Adaptor to allow the PHP template to be passed directly as a string.

class TextComponent

Behaves the same as Component except that the template is provided directly instead of via a file.

License

Copyright (C) 2017-8 Jaypha.
Distributed under the Boost Software License, Version 1.0.


All versions of jayponents with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
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 jaypha/jayponents contains the following files

Loading the files please wait ....