Download the PHP package uiibevy/flutzig without Composer

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

Flutzig - Use your Laravel routes in Flutter

Flutzig – Use your Laravel routes in Flutter

GitHub Actions Status Latest Version on Packagist Downloads on Packagist

flutzig provides a JavaScript route() function that works like Laravel's, making it a breeze to use your named Laravel routes in JavaScript.

Installation

Install Flutzig in your Laravel app with Composer:

Install Flutzig in your flutter app with pub:

Add the Flutzig initialisation in your Flutter app

Usage

route() function

flutzig's route() function works like Laravel's route() helper—you can pass it the name of a route, and the parameters you want to pass to the route, and it will generate a URL.

Basic usage

Parameters

Multiple parameters

Query parameters

flutzig adds arguments that don't match any named route parameters as query parameters:

If you need to pass a query parameter with the same name as a route parameter, nest it under the special query_ key:

Like Laravel, Flutzig automatically encodes boolean query parameters as integers in the query string:

Default parameter values

flutzig supports default route parameter values (Laravel docs).

Examples

HTTP request with dio:

Router class

Calling flutzig's route() function with no arguments will return an instance of its JavaScript Router class, which has some other useful properties and methods.

Check the current route: route().current()

COMING SOON !

Check if a route exists: route().has()

COMING SOON !

Route-model binding

Flutzig supports Laravel's route-model binding, and can even recognize custom route key names. If you pass route() a Dart object as a route parameter, Flutzig will use the registered route-model binding keys for that route to find the correct parameter value inside the object. If no route-model binding keys are explicitly registered for a parameter, Flutzig will use the object's id key.

flutzig also supports custom keys for scoped bindings declared directly in a route definition:

Generating and importing flutzig's configuration

Flutzig provides an Artisan command to output its config and routes to a file:

This command places your configuration in storage/public/flutzig/routes.json by default, but you can customize this path by passing an argument to the Artisan command or setting the flutzig.output.path config value.

The file flutzig:generate creates looks something like this:

Filtering Routes

Flutzig supports filtering the list of routes it outputs, which is useful if you have certain routes that you don't want to be included and visible in your json export.

[!IMPORTANT] Hiding routes from flutzig's output is not a replacement for thorough authentication and authorization. Routes that should not be accessibly publicly should be protected by authentication whether they're filtered out of flutzig's output or not.

Including/excluding routes

To set up route filtering, create a config file in your Laravel app at config/flutzig.php and add either an only or except key containing an array of route name patterns.

Note: You have to choose one or the other. Setting both only and except will disable filtering altogether and return all named routes.

You can use asterisks as wildcards in route filters. In the example below, admin.* will exclude routes named admin.login, admin.register, etc.:

Filtering with groups

You can also define groups of routes that you want make available in different places in your app, using a groups key in your config file:

Contributing

To get started contributing to Flutzig, check out the contribution guide.

Credits

License

Flutzig is open-source software released under the MIT license. See LICENSE for more information.


All versions of flutzig with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
laravel/framework Version >=9.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 uiibevy/flutzig contains the following files

Loading the files please wait ....