注:在windows上面是可以的
<?php
require_once '/home/wangn/ws/php/me/vendor/autoload.php';
$a = new Leon2012\Snowflake\Snowflake(1);
$b = $a->next();
var_dump($b);
php ./test/a.php
PHP Fatal error: Uncaught Error: Class 'Leon2012\Snowflake\Snowflake' not found in /home/wangn/ws/php/me/test/a.php:5
Stack trace:
#0 {main}
thrown in /home/wangn/ws/php/me/test/a.php on line 5
1 回答
- 1 回答
- 0 关注
- 453 浏览
添加回答
举报
0/150
提交
取消