Download the PHP package bluestormdesign/inertia-statamic without Composer

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

Inertia.js adapter for Statamic

Statamic server side adapter for Inertia.js to build single-page apps, without building an API.

Installation

You can install the package through Composer.

Usage

Setup

The Inertia adapter works for any page or entry content available through Statamic Collections.

By default, all Inertia-enabled pages will be expecting an app template, which should be located at resources/views/app.blade.php. This is the base page that any Inertia app is looking for, and should contain the @inertia directive. The template can be defined either at the collection or page level, but it must be app.

In your app.js file you must set up your Inertia app and reference where your Vue pages will live:

Finally, you need to create a Pages folder in resources/js. This is where your app will be looking for Vue components that match the resolved naming of your Statamic pages.

Both server-side setup and client-side setup full instructions are available on Inertia's website.

Component Naming

As you can see in the folder structure above, your Vue component naming and location must match the Statamic collection hierarchy + page slug combo for any Inertia-enabled pages. The adapter will automatically build these paths based on the page's URL and slug.

Here are some examples of what this looks like:

Statamic Collection Statamic Page Slug URL Component Name
Home Home home / Home.vue
Marketing Overview overview /marketing/ Marketing/Overview.vue
Marketing Logos and Colors logos-and-colors /marketing/logos Marketing/LogosAndColors.vue

Props

All the typical data passed to a Statamic page as objects will now be available to your page as props. The props will contain all of the expected attributes and data. For example, the Inertia response's props object could look like:

Credits

License

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


All versions of inertia-statamic with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
inertiajs/inertia-laravel Version ^0.6.0
illuminate/support Version ^8.0|^9.0
statamic/cms Version ^3.1|^3.2
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 bluestormdesign/inertia-statamic contains the following files

Loading the files please wait ....