Download the PHP package farsi/inertia-content without Composer

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

Inertia Content

Latest Version on Packagist GitHub Tests Status Code Coverage Total Downloads License

A Nuxt Content-compatible content management system for Laravel + Inertia.js + Vue applications. Write Markdown, get Vue components, query with Laravel – all with build-time compilation and zero runtime overhead.

Latest Version: v1.0.0 (Stable)

Why Inertia Content?

Traditional CMS solutions force you to pass HTML through Inertia props or parse Markdown at runtime. Inertia Content takes a different approach: compile Markdown to Vue components at build time, while Laravel maintains full control over routing and access.

Key Benefits

Installation

Inertia Content is a single Composer package that includes both PHP and JavaScript code.

The JavaScript/Vue components are TypeScript source files that your Vite will compile - no pre-built JavaScript.

📖 See How It Works for detailed explanation.

Setup

1. Add Vite Plugin

Add the Vite plugin to your vite.config.ts:

2. Create Content

Create markdown files in resources/content:

3. Add Routes

Add content routes to routes/web.php:

4. Render Content

Create a Vue component to render content:

Usage

Query Content (PHP)

Render Content (Vue)

ContentRenderer Component

Simple content rendering:

ContentDoc Component

Full document with header, TOC, and footer:

ContentList Component

List multiple content entries:

useContent Composable

For advanced use cases:

Frontmatter

Supported frontmatter fields:

Configuration

Publish the configuration file:

Available options in config/inertia-content.php:

Commands

Testing

How It Works

Inertia Content follows a unique architecture that respects both Laravel and Inertia.js philosophies:

Build Time

  1. Vite plugin scans resources/content/**/*.md
  2. Parses frontmatter, extracts headings, generates excerpts
  3. Compiles Markdown → Vue components
  4. Generates JSON manifest with metadata

Runtime

  1. Laravel queries the manifest (cached)
  2. Passes only the content key through Inertia (never HTML/Markdown)
  3. Vue dynamically imports the pre-compiled component
  4. Component renders instantly (already compiled)

Key Innovation

No HTML through Inertia props. No runtime Markdown parsing.

Laravel maintains authority over:

Vue handles:

Comparison

Feature Inertia Content Traditional CMS Static Site Generators
Runtime Parsing ❌ No ✅ Yes ❌ No
Build Performance ⚡ Fast N/A ⚡ Fast
Laravel Integration ✅ Native ⚠️ API-based ❌ Separate
Dynamic Queries ✅ Yes ✅ Yes ❌ Limited
Type Safety ✅ Full ⚠️ Partial ⚠️ Partial
HMR ✅ Yes ⚠️ Sometimes ✅ Yes
Server Authority ✅ Complete ✅ Complete ❌ No server

Nuxt Content Compatibility

This package implements 80% of Nuxt Content v2 core features, adapted for Laravel + Inertia:

Implemented:

Planned for v1.1:

See Nuxt Content Comparison for detailed feature parity analysis.

Roadmap

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Security

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

See Security Policy for more details.

License

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

Credits

Package Architecture

This is a single Composer package that includes both PHP and JavaScript code.

📦 Installation: composer require farsi/inertia-content 📂 JavaScript: Included in vendor/farsi/inertia-content/resources/js/ 🔌 Vite Plugin: Import from vendor directory

See Architecture for details.

Support


All versions of inertia-content with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
inertiajs/inertia-laravel Version ^1.0|^2.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 farsi/inertia-content contains the following files

Loading the files please wait ...