PHP code example of stechstudio / laravel-infisical

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

    

stechstudio / laravel-infisical example snippets


    use STS\LaravelInfisical\Facades\Infisical;
    
    Infisical::resolveEnvironmentUsing(function () {
         return 'prod'; // Replace with your logic to determine the environment slug
    });
    
bash
   php artisan infisical:merge --env=prod
   
bash
php artisan infisical:merge
json
"post-install-cmd": [
    "@php artisan infisical:merge"
],