Download the PHP package lunacms/forums without Composer

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

Forums for Laravel Apps

Latest Version on Packagist Total Downloads GitHub Actions

An API first forums package that allows running a single forum or multiple forums within your Laravel app. Supports Laravel 8 and above.

Installation

You can install the package via composer:

You

Then run migrate command:

Configuration

To customize the package usage, copy the package config to your local config by using the publish command:

You can configure your models, resources and morph map (for polymorphic relationships) there.

Usage

Traits

Add both traits to your User model.

By default the package uses the authenticated request user as owner of forum, posts and comments.

Running in Single Mode

Set mode option value to single in config/forums.php.

Call runInSingleMode() in boot method of AppServiceProvider.

Model Repositories

The package offers model repositories to enable interaction with the underlying API.

Included repositories are:

Available methods:

Repositories can be used if you need to interact more deeply with the API.

Routes

By default we have setup routes as the easiest way to use the package.

Note: The enclosed {CUSTOM_PREFIX} is a prefix which can be changed in the forums config route prefix.

Securing Routes

You can secure the package routes by setting the relevant middleware in the config file, under routes settings.

There are two options:

Comment Routes

They accept an id as parameter and body in the request data (except destroy) route.

Forums Routes

Handles forum functionality when mode is multi.

For post and put|patch routes, a name is required, and optional tags array.

When displaying, updating, or deleting a slug is passed as route param.

Posts Routes (in multi mode)

Pass forum slug as route param for all routes below: ie replace forums:slug.

An additional slug required for the single post display route, use $post->slug

Posts Route (in single mode)

Post slug required for a single post display route.

Posts Routes (shared in both modes)

Post slug as route param.

Post Comment Routes (shared in both modes)

Post slug as route param; body passed as request data for POST route.

Tags

Use slug as route params for all routes except index and store.

Pass name as request data for POST and PATCH routes.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The GNU GPLv3. Please see License File for more information.


All versions of forums with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
cviebrock/eloquent-sluggable Version ^9.0
kalnoy/nestedset Version ^6.0
illuminate/database Version >=8.0
illuminate/events Version >=8.0
illuminate/http Version >=8.0
illuminate/support Version >=8.0
miracuthbert/laravel-eloquent-filters Version ^1.3
spatie/laravel-medialibrary Version >=8.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 lunacms/forums contains the following files

Loading the files please wait ....