Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pnotify Laravel Package

alex198710/pnotify

View on GitHub
Deep Wiki
Context7

pnotify

  • 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>
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels