{"id":13739209,"url":"https://github.com/theimpossibleastronaut/php-sam","last_synced_at":"2025-10-11T09:06:41.500Z","repository":{"id":55078650,"uuid":"198860905","full_name":"theimpossibleastronaut/php-sam","owner":"theimpossibleastronaut","description":"Basic SAMv3 implementation for I2P in PHP","archived":false,"fork":false,"pushed_at":"2021-02-06T11:18:35.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-09T22:34:47.811Z","etag":null,"topics":["i2p","i2pd","library","php","php7","sam"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theimpossibleastronaut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-25T15:52:41.000Z","updated_at":"2021-02-18T05:14:24.000Z","dependencies_parsed_at":"2022-08-14T11:20:42.058Z","dependency_job_id":null,"html_url":"https://github.com/theimpossibleastronaut/php-sam","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theimpossibleastronaut/php-sam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theimpossibleastronaut%2Fphp-sam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theimpossibleastronaut%2Fphp-sam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theimpossibleastronaut%2Fphp-sam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theimpossibleastronaut%2Fphp-sam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theimpossibleastronaut","download_url":"https://codeload.github.com/theimpossibleastronaut/php-sam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theimpossibleastronaut%2Fphp-sam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006757,"owners_count":26084176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["i2p","i2pd","library","php","php7","sam"],"created_at":"2024-08-03T04:00:28.731Z","updated_at":"2025-10-11T09:06:41.483Z","avatar_url":"https://github.com/theimpossibleastronaut.png","language":"PHP","funding_links":[],"categories":["Libraries"],"sub_categories":["SAM"],"readme":"[![License](https://poser.pugx.org/theimpossibleastronaut/php-sam/license)](https://packagist.org/packages/theimpossibleastronaut/php-sam)\n[![SourceLevel](https://app.sourcelevel.io/github/theimpossibleastronaut/-/php-sam.svg)](https://app.sourcelevel.io/github/theimpossibleastronaut/-/php-sam)\n[![Latest Stable Version](https://poser.pugx.org/theimpossibleastronaut/php-sam/v/stable)](https://packagist.org/packages/theimpossibleastronaut/php-sam)\n[![Latest Unstable Version](https://poser.pugx.org/theimpossibleastronaut/php-sam/v/unstable)](https://packagist.org/packages/theimpossibleastronaut/php-sam)\n[![PHP Stan](https://github.com/theimpossibleastronaut/php-sam/workflows/PHP%20Stan/badge.svg)](https://packagist.org/packages/theimpossibleastronaut/php-sam)\n[![PHP Composer](https://github.com/theimpossibleastronaut/php-sam/workflows/PHP%20Composer/badge.svg)](https://packagist.org/packages/theimpossibleastronaut/php-sam)\n\n\n# php-sam\nImplementation for the SAMv3 bridge in PHP.\n\n(Based on the article [\"So you want to write a SAM library\"](http://geti2p.net/en/blog/post/2019/06/23/sam-library-basics))\n\nMost basic features are implemented. Go ahead and play with the examples.\nIt's very basic as well. Requires PHP 7.2+.\n\n```php\n\u003c?php\nrequire_once( \"lib/php-sam.php\" );\n\n$sam = new \\PHP_SAM\\SAM3();\n$sam-\u003econnect( false );\n$sam-\u003ecommandSAM( \"HELLO VERSION MIN=3.0 MAX=3.1 \\n\" );\n```\n\nYou can also use composer for this.\n```\ncomposer require theimpossibleastronaut/php-sam\n```\n\nAnd then use the autoloader:\n```php\n\u003c?php\nrequire __DIR__ . '/vendor/autoload.php';\n\n$sam = new \\PHP_SAM\\SAM3();\n$sam-\u003econnect( false );\n$sam-\u003ecommandSAM( \"HELLO VERSION MIN=3.0 MAX=3.1 \\n\" );\n```\n\nIn order to run the tests, enable zend.assertions in your php.ini (don't do that in production) and run\n```\nphp test/assert.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheimpossibleastronaut%2Fphp-sam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheimpossibleastronaut%2Fphp-sam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheimpossibleastronaut%2Fphp-sam/lists"}