wizaplace / sqreen-polyfill
Polyfill for the Sqreen PHP extension
Installs: 12 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
This package is auto-updated.
Last update: 2020-01-26 10:58:59 UTC
README
Polyfill for the Sqreen PHP extension.
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!