Download the PHP package brickfox/ext-application without Composer
On this page you can find all versions of the php package brickfox/ext-application. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brickfox/ext-application
More information about brickfox/ext-application
Files in brickfox/ext-application
Package ext-application
Short Description A base component to integrate Sencha Ext JS into a PHP application
License MIT
Homepage https://github.com/teqneers/ext-application
Informations about the package ext-application
ext-application
A base component to integrate Sencha Ext JS into a PHP application
Introduction
This library provides a simple abstraction around the different requirements when running Sencha Ext JS 6 (even though 5 should work as well) applications from a development and a production context using server generated pages. Development and production builds use different source trees to serve application files from. This process is based on a so-called manifest and a Javascript micro-loader. To make sure this process works seamlessly with server generated pages and routing, the library hooks into the manifest generation and dynamically modifies the manifest based on the required environment and context.
Currently this library is only used as the foundation of teqneers/ext-application-bundle, a Symfony 2 bundle that integrates Ext JS into a Symfony 2 based application. We have not tried to use the library as a stand-alone component or in any other context than a Symfony 2 environment, so the following is only how it should work theoretically without the bundle. We'd appreciate any help and contribution to make the library more useful outside the bundle.
Installation
You can install this library using composer
composer require teqneers/ext-application
or add the package to your composer.json file directly.
Example
Given the following directory structure of a fictitious application
./
|-- src/ Application source code
|-- htdocs/ Public web-facing directory (document root)
| |-- index.php PHP front controller
| |-- app/ Root folder for Ext JS application production build
|-- my-app/ The Ext JS application source folder (sencha generate app -ext MyApp ./my-app)
you should configure your application (e.g. from index.php)
When running the application in development mode, you have to make sure that your web server's document root is one level up from the (regular) public web-facing directory so that the web server can serve files from the Ext JS application workspace as well.
License
The MIT License (MIT)
Copyright (c) 2015 TEQneers GmbH & Co. KG
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.