PHP code example of tacman / bedrock-civicrm

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

    

tacman / bedrock-civicrm example snippets


$contactId = civicrm_contact_id_for_wp_user(get_current_user_id());