Download the PHP package ilbronza/crud without Composer

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

CRUD

Latest Version on Packagist Total Downloads Build Status StyleCI

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Before install media library (https://github.com/spatie/laravel-medialibrary)

Before install spatie permissions (https://github.com/spatie/laravel-medialibrary)

Before install activity log (https://spatie.be/docs/laravel-activitylog/v4/introduction) USE php artisan vendor:publish to publish activity-log migrations and config. Installation is bugged

Via Composer

on config/media-library.php

on app.js and then run npm

Usage

Broadcast delle modifiche CRUD

Il broadcast è opzionale e pubblica sul canale privato configurato un evento crud.model.changed con questo payload:

origin è opzionale. Quando una modifica proviene da una DataTable, il browser invia X-IB-Datatable-Browser-Tab-Id e X-IB-Datatable-Table-Id; l'evento li cattura alla costruzione, prima di un'eventuale coda, e li ripubblica come metadati di correlazione. Non usare questi valori per autorizzazione o autenticazione.

Per action: "created", il client usa key (la chiave primaria effettiva, non necessariamente un intero) per decidere se recuperare la riga e aggiungerla alla propria tabella. Questo evita di definire nel package un formato di riga comune a CRUD e DataTables.

Il canale per App\Models\Order è channel.crud-events.models.order. Abilitare CRUD_BROADCAST_ENABLED=true e autorizzare i canali privati in routes/channels.php dell'applicazione:

Con Laravel Echo il listener è:

Il testo libero si personalizza nel controller CRUD; restituire null evita l'invio per quella specifica azione. Le creazioni sono intercettate dai model base, quindi vengono inviate anche quando avvengono fuori da un controller CRUD:

Il prefisso è configurabile con CRUD_BROADCAST_CHANNEL; per usare una convenzione diversa, sovrascrivere getCrudBroadcastChannel(). Gli invii standard del controller sono effettuati dopo update (anche inline editor), delete, force-delete e archive. I model che estendono BaseModel o BasePivotModel emettono created indipendentemente dal controller che li ha generati. Anche touch() conserva il comportamento Eloquent e, se aggiorna il timestamp, emette un evento updated sul canale del model. Per disabilitarlo su un model specifico, sovrascrivere getCrudTouchedBroadcastText() e restituire null.

Ogni canale effettivamente usato viene registrato una sola volta in crud__channels (name, timestamp). Per creare la tabella, pubblicare e applicare le migration del package:

Le azioni custom possono inviare direttamente un testo libero:

Batch field read (ib-editor-read-batch)

Oltre al read singolo (ib-editor-read + field), la route di update accetta una lettura cumulativa di più campi in una sola richiesta. Viene usata dal coordinatore batch di FormField (vedi readme di ilbronza/formfield).

Richiesta (PUT via _method sulla stessa route di update):

Risposta:

Il flusso è gestito da:

Il trait è incluso automaticamente da CRUDUpdateTrait; il read singolo returnFieldFromEditor resta invariato.

Relazioni

creare un getter con i possibili valori di relazione in un select

RelationshipsManager

Gestisce il display delle relazioni in una pagina di dettaglio, tipicamente Show o Edit

Dichiarazione

Change log

Please see the changelog for more information on what has changed recently.

Testing

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.


All versions of crud 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 ilbronza/crud contains the following files

Loading the files please wait ...