Download the PHP package effina/larastitial without Composer

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

Larastitial

A Laravel package for managing interstitials (modals, full-page redirects, inline content blocks) with configurable triggers, audience targeting, frequency control, and optional admin UI.

Requirements

Installation

Run the install command:

Or manually publish and migrate:

Middleware Registration

The package automatically registers its middleware to the web middleware group. If auto-registration doesn't work (common in Laravel 11+), manually register it:

Laravel 11+ (bootstrap/app.php):

Laravel 10 (app/Http/Kernel.php):

To verify the middleware is registered:

Quick Start

1. Create an Interstitial

Visit /admin/interstitials to use the built-in admin UI, or create one programmatically:

2. Configure Event Listeners

In config/larastitial.php, enable the events you want to trigger interstitials:

3. Display in Your Views

For modals, add this to your layout:

For inline content:

Interstitial Types

Modal

Overlay dialogs that appear on top of the current page.

Full Page

Redirects user to a dedicated interstitial page before continuing.

Inline

Renders content within the page at named slots.

Triggers

Audience Targeting

Frequency Control

Frontend Modes

Configure in config/larastitial.php:

Headless/API Mode

For SPAs, use the JSON API:

Using the Facade

User Model Trait

Add the trait to your User model for convenience methods:

Custom Audience Conditions

Create a class implementing AudienceCondition:

Then reference it in your interstitial's audience_condition field.

Multi-Tenancy

Enable in config:

Implement the resolver:

Testing

Use the fake for testing:

Use the factory for creating test data:

Events

Listen to these events for custom logic:

Commands

Customization

Publishing Views

Views are published to resources/views/vendor/larastitial/.

Custom Styling

The package ships with minimal, unstyled components. Publish the views and customize to match your application's design system.

License

MIT License. See LICENSE for details.


All versions of larastitial with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.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 effina/larastitial contains the following files

Loading the files please wait ...