ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 环境要求 * PHP >= 5.5 * [PHP cURL 扩展](http://php.net/manual/en/book.curl.php) * [PHP OpenSSL 扩展](http://php.net/manual/en/book.openssl.php) * [PHP SimpleXML 扩展](http://php.net/manual/en/book.simplexml.php) ## 通过 Git 获取 Endor 您可以通过以下方式获取最新的Endor框架 github : [https://github.com/DarthAhsoka/Endor-Wechat.git](https://github.com/DarthAhsoka/Endor-Wechat.git) 码云:[https://gitee.com/ahsoka/endor-wechat.git](https://gitee.com/ahsoka/endor-wechat.git) Coding:[https://git.dev.tencent.com/dtid\_4723e196baa70b5f/Endor-Wechat.git](https://git.dev.tencent.com/dtid\_4723e196baa70b5f/Endor-Wechat.git) ## 引入项目 该项目的引入是非常简单的,该项目的文件目录是可以放在任何位置的,在您的项目中,可以通过PHP框架自带的 第三方库引入工具引入,也可以直接使用 require 项目路径/EndorAutoLoader.php 即可。 >[info] 该项目提供一个简易的自动加载器,根据名字空间,自动加载类,您可以在您的项目任何地方使用endor而 > 不用require具体文件。 > ## 扩展项目 您只需要给扩展的文件正确定义所在的命名空间,并且命名空间的路径与类库文件的目录一致,那么就可以实现类的自动加载,从而实现真正的惰性加载。