PHP code example of krsque / php-ext-protobuf-stubs

1. Go to this page and download the library: Download krsque/php-ext-protobuf-stubs 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/ */

    

krsque / php-ext-protobuf-stubs example snippets


/** @psalm-suppress UnsafeInstantiation */
$message = new $class(); // @phpstan-ignore new.protectedConstructor

composer 

composer 
xml
<stubs>
    <file name="vendor/krsque/php-ext-protobuf-stubs/psalm/protobuf.phpstub" preloadClasses="true" />
</stubs>
neon
 - vendor/krsque/php-ext-protobuf-stubs/extension.neon