Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irfaardy/php-flash-message
Flash Message for PHP, Belajar bikin package
https://github.com/irfaardy/php-flash-message
flashmessage message php php7 session
Last synced: 11 days ago
JSON representation
Flash Message for PHP, Belajar bikin package
- Host: GitHub
- URL: https://github.com/irfaardy/php-flash-message
- Owner: irfaardy
- Created: 2020-02-20T13:14:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T07:50:00.000Z (over 4 years ago)
- Last Synced: 2024-11-11T23:43:37.845Z (2 months ago)
- Topics: flashmessage, message, php, php7, session
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flash Message
> **Configuration File**
> Irfa/Flashmsg/config.php**
Basic Usage
**```php
Set Flash Message> You are free to set this message type, change css class or message
> view in config file.
>
> Flash::set(key , message, type);
```php
...
///SET FLASH Fail
Flash::set('fail-msg' , 'Description is required','fail');
///SET FLASH Success
Flash::set('success-msg' , 'Update Success','success');
///SET FLASH Info
Flash::set('info-msg' , 'Please wait 1 minutes','success');
///SET FLASH Warning
Flash::set('warning-msg' , 'Username or Password Invalid','warning');
///SET FLASH general
Flash::set('general-msg' , 'Hello, i'm Message','general');
///SET FLASH Other
Flash::set('other-msg' , 'Just Other Message','other');
...
```Get Flash Message
> Flash::get(key);
```php
...
///GET FLASH MESSAGE
Flash::get('msg');
...
```