1. Go to this page and download the library: Download getdevflow/custom-fields library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
getdevflow / custom-fields example snippets
Field::get('field_name', $id); // default context is `content`
Field::get('field_name', $id, 'product');
Field::get('field_name', $id, 'user');
Field::gallery('field_name', $id);
Field::images('field_name', $id); // the field must be an array
Field::rows('field_name', $id); // the field must be an array
Field::raw('field_name', $id); // must be top level attribute key