PHP code example of stephenjude / enums
1. Go to this page and download the library: Download stephenjude/enums library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stephenjude / enums example snippets
use Stephenjude\Enums\Status;
Status::PENDING; //pending
Status::SUCCESS; //success
Status::FAILED; //failed
Status::WARNING; //warning
Status::ERROR; //error
Status::PUBLISHED; //published
Status::UNPUBLISHED; //unpublished
Status::APPROVED; //approved
Status::REJECTED; //rejected
Status::PROCESSING; //processing
Status::COMPLETED; //completed
Status::CANCELLED; //cancelled
use Stephenjude\Enums\Gateway;
Gateway::PAYPAL; //paypal
Gateway::STRIPE; //stripe
Gateway::BINANCE; //binance
Gateway::COINBASE; //coinbase
Gateway::PAYSTACK; //paystack
Gateway::FLUTTERWAVE; //flutterwave
Gateway::BUYPOWER_NG; //buypowerng
Gateway::BANK_TRANSFER; //bank_transfer
use Stephenjude\Enums\FileType;
FileType::VIDEO; //video
FileType::AUDIO; //audio
FileType::DOCUMENT; //document
FileType::TEXT; //text
FileType::PDF; //pdf
use Stephenjude\Enums\Currency;
Currency::USD; //usd
Currency::CAD; //cad
Currency::EUR; //eur
Currency::GBP; //gbp
Currency::NGN; //ngn