Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethercap/yii2-ledap-example
an example for yii2-ledap
https://github.com/ethercap/yii2-ledap-example
Last synced: 2 months ago
JSON representation
an example for yii2-ledap
- Host: GitHub
- URL: https://github.com/ethercap/yii2-ledap-example
- Owner: ethercap
- License: other
- Created: 2020-06-19T09:42:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T09:30:50.000Z (over 4 years ago)
- Last Synced: 2024-04-23T11:18:42.331Z (9 months ago)
- Language: PHP
- Size: 182 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-ledap-example
========================安装
------------推荐的方式是通过composer 进行下载安装[composer](http://getcomposer.org/download/)。
在命令行执行
```
php composer.phar require "ethercap/yii2-ledap-example" "dev-master"
```或加入
```
"ethercap/yii2-ledap-example": "dev-master"
```到你的`composer.json`文件中的require段。
使用
-----**module配置**
一旦你安装了这个插件,你就可以直接在yii2的配置文件中加入如下的代码:
```php
return [
'modules' => [
'ledap' => [
'class' => '\ethercap\ledapExample\Module',
],
],
];
```
然后需要把静态资源放置到web目录下:```bash
cd your_project
#注意需要保证web用户有权限访问这个目录,否则页面会无法加载
ln -s `pwd`/vendor/ethercap/yii2-ledap-example/src/webroot frontend/web/js/ledap
```