PHP code example of celdotro / marketplace

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

    

celdotro / marketplace example snippets


use celmarket\Auth;
use celmarket\Config;

// [RO] Calea fizica catre certificat | [EN] Filesystem path to the certificate
Config::setCertificate('/path/to/cel-mp-12345-20260819.pem');

// [RO] Daca cheia privata are parola | [EN] If the private key has a passphrase
// Config::setCertificate('/path/to/cel-mp-12345-20260819.pem', 'parola-cheii');

Auth::setUserDetails('username', 'password');