PHPackages                             brickfox/ext-application - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. brickfox/ext-application

ActiveLibrary

brickfox/ext-application
========================

A base component to integrate Sencha Ext JS into a PHP application

1.0.2(8y ago)0671MITPHPPHP &gt;=5.3.9

Since Jun 7Pushed 8y ago2 watchersCompare

[ Source](https://github.com/brickfox/ext-application)[ Packagist](https://packagist.org/packages/brickfox/ext-application)[ Docs](https://github.com/teqneers/ext-application)[ RSS](/packages/brickfox-ext-application/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (1)

ext-application
===============

[](#ext-application)

A base component to integrate Sencha Ext JS into a PHP application

[![Build Status](https://camo.githubusercontent.com/38931bdebebfd858aba6c403afaf774f599d0cc4de5453acb4cdab2fc5402817/68747470733a2f2f7472617669732d63692e6f72672f7465716e656572732f6578742d6170706c69636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/teqneers/ext-application)[![Code Coverage](https://camo.githubusercontent.com/2e963ce9c63705f7ac76a8d429a590595c6e0148a829250203e650358643c7bd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7465716e656572732f6578742d6170706c69636174696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/teqneers/ext-application/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/84ae26180e5b1e6823863042702587fedf5c52aa98d095afc144e8b32b49e590/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7465716e656572732f6578742d6170706c69636174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/teqneers/ext-application/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/b02bc91a8e813d9cd71002ac6148550ab308348b794e4857a141a31bf7324296/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535623462613965363433353333303031633030303538322f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55b4ba9e643533001c000582)

Introduction
------------

[](#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](http://docs.sencha.com/cmd/6.x/microloader.html). 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](https://github.com/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
------------

[](#installation)

You can install this library using composer

```
composer require teqneers/ext-application

```

or add the package to your composer.json file directly.

Example
-------

[](#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)

```
$config = \TQ\ExtJS\Application\Configuration\ApplicationConfiguration(
    __DIR__ . '/../my-app',     // the absolute path to the Ext JS application workspace
    '../my-app',                // the relative path from the public web-facing directory to the Ext JS application workspace
    __DIR__,                    // the absolute path to the public web-facing directory
    '/'                         // the relative path from the  public web-facing directory to the root directory used for production build artifacts (usually /)
);

// add a default build
$config->addBuild(
    'default',          // the build name (just for referencing the build)
    '/',                // the application path relative to the Ext JS application workspace (usually / unless you have multiple applications and/or packages in a single workspace)
    'app',              // the application path relative to the root directory used for production build artifacts
    'manifest.json',    // the build manifest filename for development builds
    'bootstrap.js',     // the micro-loader filename for development builds
    null,               // the application cache manifest filename for development builds (usually NULL)
    'bootstrap.json',   // the build manifest filename for production builds
    'bootstrap.js',     // the micro-loader filename for production builds
    'cache.appcache'    // the application cache manifest filename fro production builds
);

$application = new \TQ\ExtJS\Application\Application(
    $config,
    new \TQ\ExtJS\Application\Manifest\ManifestLoader(),
    'dev' // dev or prod depending on wether you want to run from development or drom production build
);

$microLoader = $application->getMicroLoaderFile(); // returns a \SplFileInfo for the configured micro-loader
$hasAppCache = $application->hasAppCache();
if ($hasAppCache) {
    $appCache = $application->getAppCacheFile(); // returns a \SplFileInfo for the configured application cache manifest
}
$manifest    = $application->getManifest('/htdocs'); // returns a \TQ\ExtJS\Application\Manifest\Manifest configured correctly when running document root on your application base path

echo $manifest; // outputs the manifest
```

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
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 TEQneers GmbH &amp; 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.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Total

4

Last Release

3108d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.0

1.0.2PHP &gt;=5.3.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3b0d05ef60bce16f89561fd107061913ca36f088e55829ca5602a18becaf977?d=identicon)[nikolashermann](/maintainers/nikolashermann)

---

Top Contributors

[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (3 commits)")[![chancegarcia](https://avatars.githubusercontent.com/u/348263?v=4)](https://github.com/chancegarcia "chancegarcia (2 commits)")[![nikolashermann](https://avatars.githubusercontent.com/u/545433?v=4)](https://github.com/nikolashermann "nikolashermann (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brickfox-ext-application/health.svg)

```
[![Health](https://phpackages.com/badges/brickfox-ext-application/health.svg)](https://phpackages.com/packages/brickfox-ext-application)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
