Enjoy beautiful Alerts inspired by SweetAlert using PHPAlert
-
How to use PHP Alert.
-
Download and Include PHPAlert into your app
<?php
include phpalert/phpalert.php
//....
- Instantiate PHPAlert as an object
//...
$alert = PHPAlert();
-
That's it, you're done! Now you can use it anywhere ๐
-
Available Usage Examples
$alert->success('When everything is well');
$alert->info('Show some information to the users');
$alert->warn('Hey! warn a user here.')
;$alert->error('Hey! Something went wrong :-) ');
-
Full Example
<?php
include 'PHPAlert/phpalert.php';
$alert = PHPAlert();
//Lets check if setup was successful
$alert->success("You have successfully setup PHP ALERT")
?>
Would you Like TO GIVE IT A TRY WHILE IN ITS ALPHA STAGE? Why Not, The Code is Free By the way ๐