Download the PHP package matildevoldsen/quick-actions without Composer

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

matildevoldsen/quick-actions

Home screen quick actions for NativePHP Mobile apps, with iOS home screen shortcuts and Android launcher shortcuts driven from Laravel.

This package is a Composer package named matildevoldsen/quick-actions. It is built for iOS and Android, requires nativephp/mobile, and is maintained by Matilde Enevoldsen.

What it does

Requirements

Installation

The package service provider is auto-discovered by Laravel. Plugin registration is still required so the native Swift and Kotlin code is compiled into your app.

Permissions and native configuration

This plugin does not request any extra Android permissions and does not add any iOS Info.plist usage descriptions.

Platform configuration shipped in nativephp.json:

Usage (PHP)

Register quick actions during application boot so they are present before the response is finalized.

QuickActions is launcher/app-icon first. Shortcut is Spotlight/App Shortcuts first. Either builder can opt into both surfaces.

Where to register items

Typical places to register items:

The package syncs the registry after the application has booted and again at middleware termination, so request-specific shortcuts can still be finalized safely.

API reference

QuickActions::addItem(string $title, ?string $id = null): QuickActionItem

Creates a launcher quick action definition. If no ID is passed, the package derives a stable slug from the title so installed shortcuts keep working across restarts.

Shortcut::create(string $id, string $title): QuickActionItem

Creates a Spotlight/App Shortcuts definition using the explicit ID API.

Separate surfaces, with opt-in crossover

QuickActionItem::icon(?string $symbolName): self

Sets the icon alias used by both platforms.

QuickActionItem::route(string $name, array $parameters = []): self

Resolves a named Laravel route and stores the resulting in-app path.

QuickActionItem::action(string $eventClass, array $payload = []): self

Creates a signed internal dispatch URL that resolves the given event class from the container using the payload as named constructor parameters.

The payload may include redirectTo; if omitted, the internal dispatch route redirects to /.

Surface methods

QuickActionItem::addToSpotlight(): self

Opt-in shortcuts surfaces for a launcher quick action.

Only items marked with ->addToSpotlight() or ->addToShortcuts() are indexed into Spotlight/App Shortcuts when they start from QuickActions::addItem().

Fluent aliases

QuickActionsSync::sync(): void

Low-level sync service exposed through the QuickActionsSync facade alias. Most applications do not need to call this directly because the package syncs automatically.

Usage (JavaScript)

This package also ships a small JavaScript helper in resources/js/index.js for advanced SPA-side bridge calls. The preferred and durable integration is still the PHP API above, because PHP registration is what persists and rehydrates shortcuts across app launches.

Re-export the helper from your frontend build:

Then use it from Vue, React, or another SPA entrypoint:

QuickActionsBridge.sync() calls the same QuickActions.Sync bridge function used by the PHP synchronizer.

Events

This package does not dispatch its own fixed NativePHP event classes.

Instead, ->action() dispatches your event class when the signed quick-action URL is opened. The payload array is passed to Laravel as named constructor parameters.

Example:

Icon mapping

The package accepts a shared icon vocabulary and maps it to SF Symbols on iOS and framework drawables on Android.

icon() value iOS Android
photo, image, images, gallery, picture photo ic_menu_gallery
camera, photo.camera camera ic_menu_camera
search, find, magnifyingglass magnifyingglass ic_menu_search
share, action, export square.and.arrow.up ic_menu_share
settings, gear, preferences gearshape ic_menu_preferences
home house ic_menu_compass
star, favorite star star_big_on
bell, notification bell fallback

Unknown iOS icons are attempted as raw SF Symbols before falling back. Unknown Android icons log a warning and fall back to ic_menu_gallery.

Platform notes

If you regenerate native iOS sources and shortcut handling stops working, rerun:

Validation and testing

Recommended release checks:

For this package itself:

Boost guidelines

The package includes Boost guidance in resources/boost/guidelines/core.blade.php so AI tooling can discover the supported PHP and JavaScript patterns.

Local development

When developing this package locally in a NativePHP app, add it as a path repository:

With "symlink": false, refresh the mirrored vendor copy after edits:

License

MIT


All versions of quick-actions with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
nativephp/mobile Version ^3.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 matildevoldsen/quick-actions contains the following files

Loading the files please wait ...