Download the PHP package shishima/dynamic-view-value-render without Composer

On this page you can find all versions of the php package shishima/dynamic-view-value-render. 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 dynamic-view-value-render

Dynamic View Value Render

Latest Version on Packagist Total Downloads

This package supports displaying values in views files according to predefined configurations. You don't need to directly modify the blade file, just adjust the config, and this package will handle the conversion for you

Installation

You can install the package via composer:

Usage

  1. Create a configuration file in the config directory

    E.g: Create a configuration file for home blade

  2. In the controllers or similar, before returning the view, use the dynamic_render_set_data function to assign the input data

    E.g: app/Controllers/HomeController.php

    You can use the compact function to collect data into an array and then pass it to the dynamic_render_set_data function

  3. In the blade file, at the positions where values need to show, use the dynamic_render_value function to output values based on the initial configuration

Config

In the config file, there are two configurable values: type and value

Type

The configured parameters will be an array. Within the array will be classes for transforming output data

There are 2 classes available:

Custom Transform

In practical cases, data conversion may involve special cases. In such scenarios, to handle these cases, we can create a dedicated processing class and pass this class into type for the package to handle automatically

Since type is an array, multiple processing classes can be passed here. The data will be processed in the order from left to right

The output data of this class will be the input data for the next class

E.g: Create UpperCase class

IMPORTANT! If this class only performs a only task, you must use the __invoke method

Custom class must extend the ConvertExportBase class

The parameter $payload is an array consisting of 3 values:

After creating the custom class, configure this class in the config file

Custom Class contains multiple processing methods

The package also supports writing multiple processing functions within one class

To do this, methods must start with the prefix convert

E.g:

To use these functions in the config file, they will be configured under the type. No need for the convert prefix

Value

Used for DB::class and Fixed::class to retrieve data

If not using the above 2 classes, it can be left blank

Changelog

Please see CHANGELOG for more information on what has changed recently

Contributing

Please see CONTRIBUTING for details

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities

Credits

License

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


All versions of dynamic-view-value-render with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 shishima/dynamic-view-value-render contains the following files

Loading the files please wait ....