Giter Club home page Giter Club logo

Comments (3)

ssmallbirds avatar ssmallbirds commented on May 26, 2024

Fatal error: Class 'SM3\SM3' not found in E:\xuexi\SM3-PHP-master\demo.php on line 14
这个是执行demo的报错信息

from sm3-php.

ssmallbirds avatar ssmallbirds commented on May 26, 2024

第14 行 $sm3 = new SM3('abc');

from sm3-php.

DongyunLee avatar DongyunLee commented on May 26, 2024

require 'vendor/autoload.php';
use SM3\SM3;
$sm3 = new SM3('abc');
echo $sm3;
这边报错引用不到require 'vendor/autoload.php';
请问一下,这个是引用Composer 的吗

对没错,是引用 composer 的,发现之前没有传到 composer 上,现已修复,可通过访问 Packagist 进行查看。

README 中的示例也进行了更新,现在的安装方式是:

composer require ch4o5/sm3-php

然后再在文件中进行 autoload.php 文件的引入,和 SM3\SM3() 的调用。

在马上的 1.1 版本中,会提取出来一些语法糖,比如直接通过函数 sm3() 而不是实例化类、长二进制的按位与、或、非、异或、加运算等。

感谢关注!

from sm3-php.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.