Download the PHP package edgedesign/texy-bundle without Composer

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

EdgeDesign Texy Bundle

This is a simple bundle wrapping up Texy! text processor (http://texy.info/en) into a Symfony bundle.

Setup

  1. composer require edgedesign/texy-bundle
  2. Add new Edge\TexyBundle\EdgeTexyBundle() to your AppKernel.

Configuration

Feel free to override Resources/config/config.yml directives. You can change classes which will be instantiated, if you are not satisfied with our implementation, just implement correct interfaces please.

 Custom attributes

In section edge_texy_bundle.custom_attributes you can define custom html attributes which will be added to every html element. Useful for allowing html5 attributes (download, data-something, ...).

Filters

In section edge_texy_bundle.filters you can set-up your filters. First-level key determines name of filter.

Then, there are 3 types of settings.

In values, you can use asterisk sign (*), which will be translated to constant Texy::ALL and dash sign (-), which translates to Texy::NONE.

If this settings is not enough, you can extend Texy, set it up in constructor and set name of your instance as class attribute.

In this case, settings allowed, module and variables will be passed to this extended class too.

Usage

There are two ways how to use this bundle.

Service

You can get TexyProcessor service named edge_texy.processor and call method

This will process your $text via filter set in config with id $filterId.

Twig

Second way is to use registered Twig macros 'texy_process' and 'texy_process_line'.

Alternative Twig syntax useful when you don't have the content stored in variable, but in template itself:

(Thank you, OndraM, for pointing that out.)

This way, given variable is passed through filter named filterId. If no filter name given, macro tries to use filter called "default".

Difference between macros is that when using texy_process_line, Texy will not wrap given code in block tags like

.

Example config.yml

Settings example for sanitizing html output (put this into your config.yml):

Now, you can use filter sanitize to sanitize your HTML output from user and filter strip to make user no HTML from user will appear in your code.


All versions of texy-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
jiripudil/texy Version dev-master
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 edgedesign/texy-bundle contains the following files

Loading the files please wait ....