Download the PHP package yarmat/laravel-comment without Composer

On this page you can find all versions of the php package yarmat/laravel-comment. 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 laravel-comment

Laravel comments with Vue.js

Package for using comments with Vue.js component

Installing

composer require yarmat/laravel-comment

You must publish Vue Component, Languages, migration and config;

php artisan vendor:publish --provider="Yarmat\Comment\CommentServiceProvider"

After publishing you can create comments-tables by running the migrations:

php artisan migrate

Add middleware

Settings

You should edit config file

config/comment.php
Limit

Limit of comments when will you send a request for the route get (route('comment.get'))

Order
Models

Change the User Model

Prefix

Change prefix, if you need to change route prefix

{prefix}.store
{prefix}.destroy
{prefix}.update
{prefix}.count
{prefix}.get
Middleware

You can assign a middleware to each route:

Models that will implement comments
Relations

Add relations for you comments

or

Validation
TransformComment

Function that transform Comments Model before you get it in the Vue component

Allowable Tags

Php function strip_tags() that cuts out all tags except those that you list in the string

Spam Words

You can list spam words. Comments with these words will not be published.

Spam Sites

You can list allowable sites. The comment will not be published if there is an unresolved link in it.

Usage

F.e. you have model Post and you want to attach comments to it

Step 1

Add model to config

Step 2

Add Yarmat\Comment\Traits\HasCommentTrait and Yarmat\Comment\Contracts\CommentContract to your model Post:

Step 3

Add Yarmat\Comment\Traits\CommenterTrait to your User model

Step 4

Include comment component to your Vue App

Step 5

Include to your View

Step 6

Include config to your View

Finish

That is all! The you can customise vue component to your template. Component is here:

resources/js/components/comment

License

The Laravel-comment is open-sourced software licensed under the MIT license.


All versions of laravel-comment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
kalnoy/nestedset Version ^4.3
jenssegers/date Version ^3.4
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 yarmat/laravel-comment contains the following files

Loading the files please wait ....