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建造