sweetalert2 php
1.0.6
一個美麗,響應迅速,可自定義的,可訪問的(Wai-aria)替代JavaScript的彈出框。零依賴性。
請參閱SweetAlert2在動作中
此自定義PHP LIB取決於SweetAlert2 JS Lib,並且該PHP類充當JavaScript代碼構建器。
安裝此擴展程序的首選方法是通過作曲家。
要安裝vsp_framework庫,請簡單:
$ composer require varunsridharan/sweetalert2-php
如果您希望下載可以使用的整個源代碼:
$ composer require varunsridharan/sweetalert2-php --prefer-source
您也可以用git克隆完整的存儲庫:
$ git clone https://github.com/varunsridharan/sweetalert2-php.git
或手動安裝它:
下載vsp_framework.zip:
$ wget https://github.com/varunsridharan/sweetalert2-php/archive/master.zip
$ data = swal2 ( ' Success ' , ' Your Email is sent ' , ' success ' );
echo ' <script> ' . $ data . ' </script> ' ; $ data = swal2 ( ' Success ' , ' Your Email is sent ' , ' success ' );
$ data -> timer ( 500 );
echo ' <script> ' . $ data . ' </script> ' ; /**
* @param string $title
* @param string $content
* @param string $type
*
* @return SweetAlert2
*/
swal2 ( $ title = '' , $ content = '' , $ type = ' success ' ) /**
* @param string $title
* @param string $content
*
* @return SweetAlert2
*/
swal2_success ( $ title = '' , $ content = '' ) /**
* @param string $title
* @param string $content
*
* @return SweetAlert2
*/
swal2_info ( $ title = '' , $ content = '' ) /**
* @param string $title
* @param string $content
*
* @return SweetAlert2
*/
swal2_question ( $ title = '' , $ content = '' ) /**
* @param string $title
* @param string $content
*
* @return SweetAlert2
*/
swal2_warning ( $ title = '' , $ content = '' ) /**
* @param string $title
* @param string $content
*
* @return SweetAlert2
*/
swal2_error ( $ title = '' , $ content = '' )該項目的所有值得注意的更改將記錄在此文件中。
該格式基於保留更改的格式,並且該項目遵守語義版本控制。
結帳ChangElog.md
如果您想提供幫助,請查看問題列表。
我在2013年愛上了開源,從那以後再也沒有回頭!您可以在這裡閱讀有關我的更多信息。如果您或您的公司使用我的任何項目或喜歡我的項目,請考慮支持我。我從長遠來看。
由Varun Sridharan建造