承接 alex198710/pnotify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alex198710/pnotify

Composer 安装命令:

composer require alex198710/pnotify

包简介

Wrapper around the PNotify plugin

README 文档

README

  • Wrapper around pnotify
  • PNotify 2.0.1 sciactive.com/pnotify/

Without Symfony

Include CSS:

<link href="pnotify.custom.min.css" media="all" rel="stylesheet" type="text/css" />

Include JS:

<script type="text/javascript" src="pnotify.custom.min.js"></script>

Use it like this:

<script type="text/javascript">
$(function(){
	new PNotify({
		title: 'Regular Notice',
		text: 'Check me out! I\'m a notice.'
	});
});
</script>

With Symfony

Composer.json

Add this line:
"alex198710/pnotify": "dev-master"

Config.yml

assetic:
    assets:
        pnotify_js:
            inputs:
                - %kernel.root_dir%/../vendor/alex198710/pnotify/assets/js/pnotify.custom.min.js
            output: js/pnotify.js
            filters: [?yui_js]
        pnotify_css:
            inputs:
                - %kernel.root_dir%/../vendor/alex198710/pnotify/assets/css/pnotify.custom.min.css
            output: css/pnotify.css

Twig view:

{% stylesheets '@pnotify_css' filter='cssrewrite' %}
    <link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% javascripts '@pnotify_js' %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}

Then use it like this:

<script type="text/javascript">
$(function(){
	new PNotify({
		title: 'Regular Notice',
		text: 'Check me out! I\'m a notice.'
	});
});
</script>

统计信息

  • 总下载量: 84.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2014-07-16