Download the PHP package joaoolival/laravel-blog-engine without Composer

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

Laravel Blog Engine

Latest Version on Packagist Total Downloads PHP Version License

A blog engine for Laravel with Filament admin panel integration. Manage posts, authors, and categories with automatic responsive image optimization.

Requirements

Installation

Configuration

Publish the configuration file to customize resource labels, navigation, and icons:

You can customize the following for Posts, Authors, and Categories in config/laravel-blog-engine.php:

Authorization

To restrict access to blog resources, simply create Policies for the models (BlogPost, BlogAuthor, BlogCategory). Filament will automatically detect and enforce them.

This allows you to define granular permissions for who can view, create, update, delete, and restore resources.

Then register them in your application's AuthServiceProvider (or AppServiceProvider in newer Laravel versions).

For more details, see the Filament Resource Authorization documentation.

Basic Usage

Content & Responsive Images

Post content is stored as an HTML string (database longtext). When building APIs, use the provided HTTP Resources to automatically render content with responsive images:

The resource transforms the content HTML, finding image tags with data-id and replacing them with:

Note: Accessing $post->content directly returns the raw HTML with custom attributes. Use BlogPostResource for fully rendered HTML with responsive images.

Facade Methods

Method Description
getPublishedPosts(?int $perPage) Published posts (paginated or collection)
getPostBySlug(string $slug) Single post by slug
getRecentPosts(int $limit = 5) Most recent posts (for sidebars)
getRelatedPosts(BlogPost $post, int $limit = 4) Related posts by category/tags
searchPosts(string $query, ?int $perPage) Search posts by title/excerpt/content
getAllAuthors() All visible authors
getAuthorWithPosts(string $slug, ?int $perPage) Author with their posts
getAllCategories() All visible categories
getCategoryWithPosts(string $slug, ?int $perPage) Category with its posts

Models

BlogPost

Attribute Type Description
title string Post title
slug string URL-friendly identifier
excerpt string \| null Short summary
content string \| null HTML content (longtext)
tags array \| null Post tags
is_visible bool Visibility flag
published_at Carbon \| null Publish date

Scopes:

BlogAuthor

Attribute Type
name, slug, email string
bio, github_handle, twitter_handle string\|null

BlogCategory

Attribute Type
name, slug string
description, seo_title, seo_description string\|null
is_visible bool

Admin Panel

Access the Filament admin at /admin:

Responsive Images

This package uses Spatie Media Library for image handling. Images are automatically converted to WebP with responsive variants.

For background processing, install Laravel Horizon:

Generating Demo Content

Quickly populate your blog with dummy content using the blog:generate command:

This will prompt for the number of authors, categories, and posts to create (defaults: 1, 1, 12).

You can also pass options directly:

Testing

Credits

Support

If you encounter any issues or have questions, please open an issue on GitHub.

License

MIT. See LICENSE.md.


All versions of laravel-blog-engine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.0
filament/spatie-laravel-media-library-plugin Version ^5.0
illuminate/contracts Version ^12.0 || ^13.0
spatie/laravel-medialibrary Version ^11.17
spatie/laravel-package-tools Version ^1.16
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 joaoolival/laravel-blog-engine contains the following files

Loading the files please wait ...