Download the PHP package asiragusa/extjs-bundle without Composer

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

extjs-bundle

Use ExtJs with Symfony 2

Build Status

Packagist: https://packagist.org/packages/tpg/extjs-bundle

The aim of this bundle is to ease the intergration between Symfony 2 and ExtJS client side framework. It support

Requirement

Mandatory

Optional

Installation

Using composer

Enabling bundle

Add routing rules

All documentation below, we assume all ExtJs controller path is prefix with /extjs.

Configuration

Testing Run

Unit Test are written with PHPUnit and Jasmine JS. How to run unit test is in .travis.yml file.

Model/Entities Code Generation

You may need to configure the additional routing rule for this feature to work. To generate Ext.data.Model code, you just need to include script tag pointing to generateModel.js

To generate all entities and document configured in the configuration,

To generate some specific entities,

Acme.DemoBundle.Entity.Person and Test.TestBundle.Model.Book is the full namespace of the model, just replace slash () with dot (.).

The entity class must annotate with Tpg\ExtjsBundle\Annotation\Model, please check out Tpg/ExtjsBundle/Tests/Fixtures/Test/TestBundle/Model/*.php for example usage.

There is a Twig extension (extjs_model) to make it easy to include/load model onto/from the current page.

To generate and inject the ExtJS code onto the current page,

To reference and load ExtJS code through script tag,

Remoting integration

You will need to configure remoting parameter to get ExtJs Remoting working with Controller.

To generate the glue for the remoting intergation on the page, just include

To enable a controller's action remotable, you need to annotate the function with Tpg\ExtjsBundle\Annotation\Direct.

If controller parameter is expecting Symfony\Component\HttpFoundation\Request object then you need to call the remote api with only 1 parameters. You need to wrap parameters in array.

$idResult will contain 12 and $nameResult will contain "EFG".

To call that remote api, you need to use.

Code generation of Rest Controller

The rest controller code generation is an extension of Sensio's controller generator. The generated controller will extend FOS\RestBundle\Controller\FOSRestController class.

You will need to enable the following bundles.

You also need to make sure the following configuration for fos_rest.

Generated controller set different groups on JMS serializer context during serialization and deserialization process.

For example,

To generate a rest controller (PeopleController) for entity Acme.DemoBundle.Entity.Person,

Attributes in entity need to be have JMS type specify for deserializing to work.

Only controller and entity option is require, all the rest of the option can be left as default. The generator will create/update 2 files,

To include this generated rest controller into the routing table, just include

PHP 5.4 Trait Support Using generate:rest:controller with --trait option the generator will generate 2 class for you,

Seperating the generated code and the your custom implementation on the controller. This will allow you to regenerate the controller without affecting your custom implementation.

Connecting ExtJS Rest Proxy with Rest Controller in Symfony

To specify rest proxy in extjs model, you need


All versions of extjs-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/symfony Version 2.3.*
doctrine/orm Version >=2.2.3,<2.4-dev
jms/serializer Version 0.13.*@dev
jms/serializer-bundle Version 0.12.*@dev
jms/di-extra-bundle Version ~1.4
sensio/generator-bundle Version 2.3.*
friendsofsymfony/rest-bundle Version ~0.12
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 asiragusa/extjs-bundle contains the following files

Loading the files please wait ....