axstrad / browser-sync-bundle
A Symfony 2 bundle for use with Browser-Sync.io
Installs: 1 647
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.3
- axstrad/common: >=0.1
- symfony/symfony: ~2.3
Requires (Dev)
- axstrad/use-case-test-bundle: dev-master
- phpunit/phpunit: ~4.1@stable
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-12-23 06:23:02 UTC
README
AxstradBrowserSyncBundle
NAMESPACE: Axstrad\Bundle\BrowserSyncBundle
Introduction
For use with Browser Sync.
This bundle will inject the Browser Sync markup into every non-AJAX HTML response sent from your app. By default, this will occour when your app is in debug mode.
Installation
Install the bundle using composer.
$ composer require --dev axstrad-browser-sync-bundle
Add the bundle to your kernel.
// app/AppKernel.php if ($this->getEnvironment() == 'dev') { $bundles[] = new Axstrad\Bundle\BrowserSyncBundle\AxstradBrowserSyncBundle(); }
That's it! The browser sync markup will be inected into all HTML requests so long as your app is in debug mode.
Configuration Reference
Full config with default values:
axstrad_browser_sync: enabled: %kernel.debug% server_port: 3000 client_version: null
enabled (Boolean): Enable (true) or disable (false) the bundle. If null the value of the kernel's debug parameter is inherited.
server_port (Integer): Set the server port to use within the Browser Sync markup.
client_version (String): Your installed version of Browser Sync, you may leave this blank.