PHP code example of helgatheviking / gp-language-pack-client

1. Go to this page and download the library: Download helgatheviking/gp-language-pack-client 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/ */

    

helgatheviking / gp-language-pack-client example snippets




// Require the Composer autoloader
;

new Client(
    'https://your-server.com', // Base URL for GP Language Pack Server
    'your-project-slug',       // GlotPress project slug/path
    'your-textdomain',         // Plugin or theme text domain
    'plugin'                   // Optional: plugin|theme (default plugin)
);