Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litto/message
Display Message Simple Library for PHP projects
https://github.com/litto/message
Last synced: about 2 months ago
JSON representation
Display Message Simple Library for PHP projects
- Host: GitHub
- URL: https://github.com/litto/message
- Owner: litto
- License: mit
- Created: 2022-02-04T11:13:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T12:50:54.000Z (almost 3 years ago)
- Last Synced: 2024-05-04T15:01:12.834Z (8 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Message Library
Display Message Simple Library for PHP projects like Errors, Warning, Success , Notices.etc..
##How to Install?
Install Using Composer or Direcly you can download from the Github Code
You can install via composer by using this command:-composer require litto/message:v2.0
##How to Use?
1) Always remember to start session in your application using session-start();
2) Copy the Message.php in Vendor folder or in your folder of your choice
3) Include The file using autoload or using include function
4) For Setting Message pass like:-$message = new Message('Your Message Text','Messagetype string');
$message->setMessage();Message Type Strings -
error,message,warning5) To Display call it like:-
showMessage();
$message->clearmessage();
?>6) The message display will be using the boostrap alert styles. if you want to change the design class, you can chnage in the Message.php file