Download the PHP package laravel-bricks/flux without Composer

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

Flux

[Travis]() Total Downloads

Flux è un componente Bricks per la gestione degli stati del Flusso base per contenuti.
Stati Flusso Base

Installazione

Pubblicazione Asset

E Possibile pubblicare gli Asset View, Lang ed il file di configurazione utilizzando la sintassi classica del comando artisan vendor:publish

É inoltre possibile specificare un tag per selezionare il tipo di asset da publicare --tag"Bricks-Flux-Translations" per i file delle lingue, --tag="Bricks-Flux-Config" per i file di configurazione e --tag="Bricks-Flux-View" per le viste.

Uso

Modifiche del Database

É necessario che la tabella che ospita i contenuti da sottoporre al flusso base, contenga un campo utile per l'implementazione della gestione degli stati del flusso, solitamente questo campo si chiama status, aggiungere il campo alla vostra migration.

Nel caso che, il nome del campo sia diverso da status, sarà necessario specificarlo nel file di configurazione bricks-flux.php

Modifiche al Modello

Implementare l'interfaccia Flowable ed aggiungere il Tratto HasEasyFlux al Modello.

E possibile specificare il valore dello stato per i tre stati fondamentali del flusso base nel file di configurazione bricks-flux.php

Quando viene creato un record, automaticamente viene aggiunto lo stato draft.

Implementazione

laravel-bricks/Flux possiede due implementazioni preconfezionate per il cambio di stato, una è basata sui component di laravel, ed una è basata su Livewire.

Implementazione via Laravel Component

L'implementazione via component richiede di aggiungere un componente all'interno della form che gestisce la modifica, passando l'oggetto che implementa l'interfaccia Flowable.

Per il salvataggio è necessario aggiungere la Facade di salvataggio nel'update del controller.
Utilizzare la Facade Capacitor::fluxing(Flowable $object, String $status)

Implementazione via Livewire

L'implementazione via Livewire richiede soltanto l'inserimento del tag fuori da una form, non è necessario aggiungere altro al controller.

Scope

É possibile ottenere l'elenco Eloquent tramite filtri preimpostati grazie al Tratto HasEasyFlux per i contenuti in Bozza, Pubblicati e non Pubblicati.

Salvataggio Stati

Se fosse necessario creare specifiche implemetazioni e si rendesse necessario salvare gli stati è possibile utilizzare i seguenti metodi.

Accessors e Mutators

Il tratto HasEasyFlux aggiunge due Accessors e un Mutator,

Accessor per la Traduzione

L'accessor per le lingue è invocabile tramite la proprietà $post->trans_status, questa rispondera con la traduzione dello stato nella lingua corrente.

Accessor e Mutator per l'astrazione del campo

Il tratto HasEasyFlux aggiunge un mutator ed un accessor per la proprieta $post->status questa proprietà funzionerà indipendentemente dal nome del campo nel database.

Testing

Run the tests with:

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.


All versions of flux with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1
illuminate/support Version ^8.0|^9.0|^10.0|^11.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 laravel-bricks/flux contains the following files

Loading the files please wait ....