Download the PHP package jeffersongoncalves/laravel-knowledge-base without Composer

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

![Laravel Knowledge Base](https://raw.githubusercontent.com/jeffersongoncalves/laravel-knowledge-base/main/art/jeffersongoncalves-laravel-knowledge-base.png)

Laravel Knowledge Base

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status PHPStan Total Downloads Buy Me A Coffee

A Laravel package for building knowledge bases with articles, categories, versioning, feedback, and search.

Features

Requirements

Installation

Publish and run migrations:

Publish the config (optional):

Configuration

The config file (config/knowledge-base.php) covers:

Table Prefix

Set to null to use table names without a prefix.

Custom Models

Override any model to extend the default behavior. Custom models must implement the corresponding contract:

Knowledge Base Settings

Search

Usage

Using the Service

The KnowledgeBaseService is the recommended way to interact with the knowledge base:

Creating Categories

Creating Articles

This automatically:

Updating Articles

When versioning is enabled, this creates a new version entry with the editor and change notes.

Publishing & Archiving

Feedback

Feedback automatically increments helpful_count or not_helpful_count on the article and dispatches ArticleFeedbackReceived.

Search

Results are ordered by view_count descending (most popular first).

Using Models Directly

For queries outside the service, use ModelResolver:

Extending Models

Create custom models that implement the required contract:

Then update the config:

Events

Event Payload When
ArticleCreated $article After article creation via service
ArticlePublished $article After publishing via service
ArticleFeedbackReceived $article, $feedback After feedback submission

Listen to events in your EventServiceProvider or with listeners:

Enums

ArticleStatus

Value Label (en) Label (pt_BR)
draft Draft Rascunho
published Published Publicado
archived Archived Arquivado

ArticleVisibility

Value Label (en) Label (pt_BR)
public Public Público
internal Internal Interno

Database Tables

All tables use the configured prefix (default: kb_):

Table Description
kb_categories Hierarchical article categories
kb_articles Knowledge base articles
kb_article_versions Article version history
kb_article_feedback User feedback on articles
kb_article_relations Related articles (pivot)

Testing

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-knowledge-base with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.15
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 jeffersongoncalves/laravel-knowledge-base contains the following files

Loading the files please wait ...