Download the PHP package corepine/modal without Composer

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

Corepine Modal

Corepine Modal is a stack-based modal system for Laravel with two runtime modes:

It supports:

Requirements

Livewire is required by the package because stack mode uses a Livewire host. Standalone Alpine + Blade usage is still fully supported.

Installation

Publish config:

Setup

Livewire Stack Mode

Render the host once in your layout:

Standalone Alpine + Blade Mode

You can use <x-corepine.modal /> directly with browser events and no Livewire modal class. The host is not required for standalone-only usage.

Tailwind Setup

Add the package stylesheet to your main CSS entry:

The package CSS already includes Tailwind @source paths for its own views, PHP classes, and config.

If you publish corepine-modal.php and add custom modal size classes there, include the published config in your app CSS source list so Tailwind can keep those classes:

Quick Start (Livewire Stack Mode)

Open it from Blade:

Open / Close APIs

From a modal class:

From Blade helpers:

dispatch fires regular Livewire/browser events after the close finishes.

dispatchTo fires Livewire targeted events after the close finishes.

Use modal-id on open/close helpers when you want to target a standalone <x-corepine.modal id="..." /> by id.

Quick Start (Standalone Alpine + Blade Mode)

Use this when you do not need a Livewire modal class:

Standalone named slots:

Example:

Standalone browser events:

Each event accepts { id?: string } in detail.

Modal Attributes

The canonical shell/action API uses actions (not legacy keys).

Key Type Default Notes
type modal \| drawer \| sheet modal Presentation type.
placement Placement \| string by type modal: center/top/bottom/left/right, drawer: left/right, sheet: forced bottom.
origin Placement \| string follows type/placement Transform origin; same value set as placement vocabulary.
size string default Width token from config sizes, or custom class string.
height string \| number \| null null Panel height (modal/drawer) and initial sheet height.
maxHeight string \| number \| null null Shared max-height cap for all types.
dismissible bool true Scrim click closes when true.
draggable bool type-aware Sheet drag/resize behavior.
showDragHandle bool type-aware Sheet handle visibility.
dragCloseThreshold float 0.5 Sheet drag-close ratio.
closeOnEscape bool true Escape closes top layer.
closeAllOnEscape bool false Escape closes full stack.
destroyOnClose bool true Remove closed layers from host state.
dispatch array [] Default events to dispatch after close.
dispatchTo array [] Default targeted Livewire events to dispatch after close.
dispatchCloseEvent bool false Emits the built-in modal.component-closed notification for that layer.
blur bool false Scrim blur effect.
shell bool true Enables built-in shell header/body/footer structure.
heading string \| null null Shell heading text.
description string \| null null Shell description text.
showClose bool \| null auto Built-in shell close icon. Defaults to visible only when built-in heading or description is present.
footerActionsAlignment Alignment \| string end start, center, end.
actions array [] Declarative shell actions (close / method).
class string '' Extra panel classes.

Type Behavior Rules

Declarative Actions

Action payloads can be raw arrays or fluent Action::make(...) objects.

Supported fluent helpers include:

Event System

Default incoming events:

Default outgoing events:

Event Customization

You can rename both incoming and outgoing events in config/corepine-modal.php:

For package integrations, do not hardcode event strings. Resolve them from the service:

Configuration

Main sections in config/corepine-modal.php:

Example Size Override

Blade Components (Canonical)


All versions of modal with dependencies

PHP Build Version
Package Version
No informations.
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 corepine/modal contains the following files

Loading the files please wait ...