Download the PHP package ssh521/laravel-draggable-modal without Composer

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

Laravel Draggable Modal

A Laravel package that provides draggable and resizable modal components with Alpine.js support.

Features

Requirements

Installation

μ„€μΉ˜μ™€ μ„€μ •μ˜ 전체 λ‹¨κ³„λŠ” INSTALL.mdλ₯Ό μ°Έκ³ ν•˜μ„Έμš”. READMEμ—μ„œλŠ” μ‚¬μš©λ²•λ§Œ λ‹€λ£Ήλ‹ˆλ‹€.

Usage

Basic Draggable Modal

Multi-Modal Support

Alert Modal

Modal Trigger Variants

Component Props

Draggable Modal / Draggable Modal Multi

Prop Type Default Description
id string auto-generated Unique identifier for the modal
title string '' Modal title displayed in header
width int 800 Initial width in pixels
height int 600 Initial height in pixels
minWidth int 300 Minimum width in pixels
minHeight int 200 Minimum height in pixels
initialX int|null null Initial X position (centered if null)
initialY int|null null Initial Y position (centered if null)
showCloseButton bool true Show close button in header
showResizeHandle bool true Show resize handle in corner
closeOnEscape bool true Close modal on ESC key
closeOnBackdropClick bool false Close modal when clicking backdrop

Draggable Modal Alert

Prop Type Default Description
id string auto-generated Unique identifier for the modal
title string 'Alert' Alert title
message string '' Alert message
type string 'info' Alert type: info, success, warning, error
showCloseButton bool true Show close button
closeOnBackdropClick bool false Close on backdrop click
closeOnEscape bool true Close on ESC key

Modal Trigger

Prop Type Default Description
text string 'Open Modal' Button/link text
modal-id string required ID of the modal to open
variant string 'primary' Style variant: primary, secondary, danger
type string 'button' Render as: button, link
modalType string 'multi' Modal type: multi, single, alert

Programmatic Control

You can also trigger modals programmatically using custom events:

You can also open a modal by dispatching a DOM event from Blade or JS. The package registers listeners in resources/js/draggable-modal/init.js.

Livewire Integration

You can trigger modals from Livewire components:

Customization

Customizing Views

After publishing the views, you can customize them in:

Customizing JavaScript

After publishing the JavaScript files, you can modify the behavior in:

If you change file locations or names, update your imports accordingly and rebuild assets (npm run build).

Routes: μƒ˜ν”Œ 라우트 λΉ„ν™œμ„±ν™” 및 web.php에 직접 μΆ”κ°€

μƒ˜ν”Œ 라우트 μžλ™ λ‘œλ“œλ₯Ό λ„κ³ μž ν•œλ‹€λ©΄ 섀정을 νΌλΈ”λ¦¬μ‹œν•œ λ’€ λΉ„ν™œμ„±ν™”ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

1) μ„€μ • νΌλΈ”λ¦¬μ‹œ

2) .env λ˜λŠ” config/draggable-modal.phpμ—μ„œ λΉ„ν™œμ„±ν™”

λ˜λŠ” config/draggable-modal.phpμ—μ„œ

3) routes/web.php에 직접 μΆ”κ°€ μ˜ˆμ‹œ

Troubleshooting

μ„€μΉ˜/λΉŒλ“œ κ΄€λ ¨ λ¬Έμ œλŠ” INSTALL.md의 Troubleshooting μ ˆμ„ ν™•μΈν•˜μ„Έμš”. μ‚¬μš© 쀑 λ™μž‘ λ¬Έμ œκ°€ μžˆλ‹€λ©΄ λΈŒλΌμš°μ € μ½˜μ†” 였λ₯˜μ™€ Alpine μ΄ˆκΈ°ν™” μ—¬λΆ€λ₯Ό μš°μ„  확인해 μ£Όμ„Έμš”.

Browser Support

License

This package is open-sourced software licensed under the MIT license.

Credits

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


All versions of laravel-draggable-modal with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^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 ssh521/laravel-draggable-modal contains the following files

Loading the files please wait ...