PHP项目开发框架,基于composer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
229 B

  1. <?php
  2. namespace Wiggins\MyProject\Example;
  3. require '../vendor/autoload.php';
  4. use Wiggins\MyProject\MyClass; //命名空间对应文件目录src/MyClass.php
  5. $obj = new MyClass;
  6. echo $obj->func().PHP_EOL;
  7. ?>