PHP code example of tholcomb / goes-php

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

    

tholcomb / goes-php example snippets

shell
$ composer create-project tholcomb/goes-php $INSTALL_DIR

*/5 * * * * www-data php $INSTALL_DIR/bin/console.php goes:cron

server {
        ...
        root $INSTALL_DIR/public;

        location / {
                try_files $uri /index.php$is_args$args;
        }
        location ~ ^/index\.php(/|$) {
                fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
                fastcgi_split_path_info ^(.+\.php)(/.*)$;
                
shell
$ php bin/console.php goes:user add
shell
$ php bin/console.php goes:user list
shell
$ php bin/console.php goes:user remove $API_KEY