PHP code example of coldtrick / post_as

1. Go to this page and download the library: Download coldtrick/post_as 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/ */

    

coldtrick / post_as example snippets


$result[
	'<form_name>' => [
		'type' => '<entity_type>',
		'subtype' => '<entity_subtype>',
		'action' => '<action>', // defaults to '<form_name>'
		'extend_form' => true|false, // defaults to true, set to false if the form already contains the post_as/input view
	],
];