sfneal / js-response-helpers
JavaScript response helpers for PHP applications
Installs: 5 065
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: >=7.5.20
README
JavaScript response helpers for PHP applications.
Installation
You can install the package via composer:
composer require sfneal/js-response-helpers
In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.
"autoload": { "files": [ "vendor/sfneal/js-response-helpers/src/js-response-helpers.php" ] }
Usage
Javascript response helpers can be used to generate responses in http controllers.
# generate an error message to be returned in a controller response jsAlert('An error has occurred.'); >>> 'alert("An error has occurred.");'
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stephen@stephenneal.net instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.