Download the PHP package kirschbaum-development/nova-comments without Composer

On this page you can find all versions of the php package kirschbaum-development/nova-comments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-comments

A commenting resource tool for Nova apps

Latest Version on Packagist Total Downloads Codacy Badge

This package contains an inline commenting form for any resource to easily add comments. Think a simple version of Disqus for Nova!

Commenter Tool

screenshot of the commenter resource tool

Simple Comment Panel

screenshot of the comments panel

Requirements

This Nova resource tool requires Nova 4.0 or higher.
For older version of Nova, use the tagged version 1.0.2

Installation

You can install this package in a Laravel app that uses Nova via composer:

Next, we need to run migrations. Auto-discovery of this package's service provider helps with that!

And lastly, any model that you want to have comments needs the Commentable trait added to it.

If you would like to publish the config for this package, run:

And choose the provider for this package: KirschbaumDevelopment\NovaComments\NovaCommentsServiceProvider

This package requires that it has a commenter, which is simply a User. Nova Comments automatically defaults to the App\Nova\User resource, but can easily be changed in the publishable config file.

Usage

There are two components that ship with this package, the Commenter and a CommentsPanel.

Commenter

The first, and most useful, component is the Commenter. It is a resource tool that allows you to insert a commenting panel directly onto any Nova resource. This panel allows you to add a comment directly to a resource without needing to create one from the respective create view. The newly created comments show up below the commenting form with live updating.

Simply add the KirschbaumDevelopment\NovaComments\Commenter resource tool in your Nova resource:

Now you can comment from the detail view of any resource you've attached the Commenter to! Happy commenting!

Comments Panel

As a convenience, a prebuilt comments panel has been created for you. All you need to do is simply add it to your resource and enjoy the pre-built goodness.

Of course you are completely free to create your own comments panel, but to get up and running quickly, we recommend using this panel.

Sidebar Navigation

Occasionally you may want to hide comments from the sidebar. You can easily do this by setting the respective config value to false. Make sure to first publish the configs.

Pagination caveat

Due to an limitation in how Nova paginates results, there is currently no way to set the perPage value for the number of comments that will display at a time from a configuration value. Nova's default value is 5 per page. If you would like to set this to a different value, such as 25, we recommend you extend the Commenter and set this value with the follwing code:

Then use this class instead of the default Commenter class within your resources.

Customizing the comment

By default, the Comment model will strip tags from the comment body. If you would like to modify this behavior, you can pass an callback to the Comment::whenCreating method. This callback will receive the comment model instance as a parameter.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] or [email protected] instead of using the issue tracker.

Credits

Sponsorship

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more about us or join us!

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-comments with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/nova Version ^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kirschbaum-development/nova-comments contains the following files

Loading the files please wait ....