2017 © Pedro Peláez
 

package php-es6-detect

Class PHP to Browser ES6 compatibility detect

image

marceloxp/php-es6-detect

Class PHP to Browser ES6 compatibility detect

  • Tuesday, July 3, 2018
  • by marceloxp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-es6-detect

Class PHP to Browser ES6 compatibility detect, (*1)

Installation

Composer

composer require marceloxp/php-es6-detect

OR, (*2)

Add directly to your composer.json

"require": {
    "marceloxp/php-es6-detect": "^1.0.0"
},

Usage

Option 1

use \marceloxp\PhpEs6Detect;
PhpEs6Detect::setScriptFolder();
<script type="text/javascript" src="<?php echo JSFOLDER; ?>/main.js"></script>

Option 2

use \marceloxp\PhpEs6Detect;
PhpEs6Detect::setScriptFolder('MYJSFOLDER', 'scripts', 'es6');
<script type="text/javascript" src="<?php echo MYJSFOLDER; ?>/main.js"></script>

Result Script

```php // Case ES6 suport: // Old browsers: , (*3)

The Versions

03/07 2018

dev-master

9999999-dev https://github.com/marceloxp/php-es6-detect

Class PHP to Browser ES6 compatibility detect

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar marceloxp

php javascript es6