dev-master
9999999-dev https://github.com/marceloxp/php-es6-detectClass PHP to Browser ES6 compatibility detect
MIT
The Requires
- php >=7.0.0
- cbschuld/browser.php 1.95-dev
The Development Requires
by marceloxp
php javascript es6
Class PHP to Browser ES6 compatibility detect
Class PHP to Browser ES6 compatibility detect, (*1)
composer require marceloxp/php-es6-detect
OR, (*2)
composer.json
"require": { "marceloxp/php-es6-detect": "^1.0.0" },
use \marceloxp\PhpEs6Detect; PhpEs6Detect::setScriptFolder(); <script type="text/javascript" src="<?php echo JSFOLDER; ?>/main.js"></script>
use \marceloxp\PhpEs6Detect; PhpEs6Detect::setScriptFolder('MYJSFOLDER', 'scripts', 'es6'); <script type="text/javascript" src="<?php echo MYJSFOLDER; ?>/main.js"></script>
```php // Case ES6 suport: // Old browsers: , (*3)
Class PHP to Browser ES6 compatibility detect
MIT
php javascript es6