Download the PHP package 7ute/directavel without Composer

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

Directavel

Directavel helps using Directus as an administrative backend for Laravel. It provides some commands to programmatically define and version Directus collections, and sync them without touching your data tables.

Tests Latest Version

Installation

Directavel requires PHP 8.0+, Laravel 10.x+ and Directus 9.x+. To get the latest version, simply require the project using Composer:

Once installed, if you are not using automatic package discovery, then you need to register the SevenUte\Directavel\DirectavelServiceProvider service provider in your config/app.php. You can also alias the facade:

Directus must be installed and bootstraped, and the migrations must have been run already. You can bootstrap it by running the following in the directus project directory :

Configuration

To customize the directus configuration, you first must publish the config.

This will create a config/directavel.php file in your app that you can modify to set your configuration. Make sure you check for changes to the original config file in this package between releases.

Collections

Each collection is defined by a PHP file named after the table we want to configure. The collections sits at the path set in the directavel.collections_path_pattern config entry.

A configuration files is composed as following :

To see an example, check the sample.php file in this package. You can also refer to the DirectusFields model for a list of available fields and some typing for your IDE, and the DirectusCollections and DirectusRelations for the available columns.

Presets

The general presets can be defined in a file at the path set in the directavel.presets_path config entry. Some default config for the directus_activity, directus_presets and directus_users views are included in the presets.php file of this project.

Usage

Once the collections are configured, you can use the facade in a migration, or use the command to trigger a full refresh of Directus collections / fields without touching your non-directus data tables.

Warning All your existing Activityn Collections, Fields, Presets, Relations and Revisions might be wiped, depending on your settings in the config file.

Commands

Facade

Tests

This package is tested with Pest. To run the tests, use composer tests.

Contributions

Pull requests are welcome. Pull requests with tests are even more welcome.

Security

If you discover a security vulnerability within this package, please send an e-mail to Julien Cauvin at [email protected]. All security vulnerabilities will be promptly addressed.

License

Directavel is licensed under The MIT License (MIT).


All versions of directavel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
laravel/framework Version ^10.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 7ute/directavel contains the following files

Loading the files please wait ....