hashcash
v1.8.0
تنفيذ PHP خالص لـ hashcash 1.
يوضح المشروع كما هو موضح في منشور مدونتي حول التعاون في البرامج مفتوحة المصدر.
الطريقة المفضلة للتثبيت هي عبر Packagist وComposer. قم بتشغيل الأمر التالي لتثبيت الحزمة وإضافتها كمتطلب إلى Composer.json:
composer.phar require thefox/ hashcash
راجع examples.php
لمزيد من الأمثلة.
<?php
require ' vendor/autoload.php ' ;
use TheFox Pow hashcash ;
$ stamp = hashcash :: newInstance ( 20 , ' [email protected] ' )-> mint ();
print " hashcash stamp: ' " . $ stamp . " ' n" ;
?>
<?php
require ' vendor/autoload.php ' ;
use TheFox Pow hashcash ;
$ hashcash = new hashcash ( 20 , ' [email protected] ' );
print " hashcash stamp: ' " . $ hashcash -> mint (). " ' n" ;
?>