Comments (3)
Fatal error: Class 'SM3\SM3' not found in E:\xuexi\SM3-PHP-master\demo.php on line 14
这个是执行demo的报错信息
from sm3-php.
第14 行 $sm3 = new SM3('abc');
from sm3-php.
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)
- 经测试V1.1.2, V1.1.1结果有误, demo结果也不同 HOT 3
- 重构为使用PHP直接操作二进制的方式 HOT 9
- 不能正确处理空白符(空格、回车符等) HOT 4
- sm2 sm3 sm4 HOT 1
- 为啥我这边输出结果不一致 HOT 3
- 让仓库对 commitizen 友好
- sm3() donnot support Non-ASCII (不支持非ASC码) HOT 1
- 指定密钥加密 HOT 4
- 摘要算法对空格并不支持 HOT 1
- 一个文件多次调用时报错
- sm3_file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sm3-php.