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

3 years ago
3 years ago
  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. ?>