Download the PHP package kmklabs/xbt without Composer

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

XHP Block Template

Intro

This is a simple library to compile an XHP template expression into an ordinary Hack class. We do this because we need to have a template inheritance and inclusion in XHP.

Features

Example

Suppose that we have this xbt template, named template.xbt.php:

And have a view file named welcome.xbt.php:

Load the file, and using this library, we can convert the template into an XHP class

$result should be like something like this:

Laravel Binding and Config

Include the Xbt\LaravelServiceProvider to your project. Compiled xhp classes are in config('view.compiled'), and compiled laravel views from that classes are in config('view.xbt_cache').

Process

Tokenizer will tokenize the template into a TokenStream. We pass the TokenStream into the Parser, and call the method parse to get the Template node, the highest level representation node for a given template.

Node is the abstraction of xhp class in php/hack. The parsing process will turn a template file into a Node before writing into files. Method compile in Template will output XHP code.


All versions of xbt with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
ext-xhp Version *
illuminate/view Version ~5.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 kmklabs/xbt contains the following files

Loading the files please wait ....