Skip to content

Yoopies/sqreen-polyfill-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polyfill for the Sqreen PHP extension.

Total Downloads

Using Sqreen's PHP extension requires us to use this pattern everywhere:

if (extension_loaded('sqreen')) {
    sqreen\signup_track(['email' => $email])
}

This package is a polyfill re-declaring all the functions provided by Sqreen when the extension is not installed. In other words, after installing this polyfill you can rely on the function to exist:

sqreen\signup_track(['email' => $email]);

If the extension is installed, everything will work as expected. If not (for example on your development machine) nothing will happen.

Installation

composer require wizaplace/sqreen-polyfill

That's all you need to do!

About

Polyfill for the Sqreen PHP extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%