FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

theimpossibleastronaut/php-sam: Basic SAMv3 implementation for I2P in PHP · GitHub

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-sam

Implementation for the SAMv3 bridge in PHP.

(Based on the article "So you want to write a SAM library")

Most basic features are implemented. Go ahead and play with the examples. It's very basic as well. Requires PHP 7.2+.

<?php
require_once( "lib/php-sam.php" );

$sam = new \PHP_SAM\SAM3();
$sam->connect( false );
$sam->commandSAM( "HELLO VERSION MIN=3.0 MAX=3.1 \n" );

You can also use composer for this.

composer require theimpossibleastronaut/php-sam

And then use the autoloader:

<?php
require __DIR__ . '/vendor/autoload.php';

$sam = new \PHP_SAM\SAM3();
$sam->connect( false );
$sam->commandSAM( "HELLO VERSION MIN=3.0 MAX=3.1 \n" );

In order to run the tests, enable zend.assertions in your php.ini (don't do that in production) and run

php test/assert.php

About

Basic SAMv3 implementation for I2P in PHP

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL