callmenp/lara-auth-bridge
Composer 安装命令:
composer require callmenp/lara-auth-bridge
包简介
Offers a simple API for the included custom phpBB authentication module. for phpBB3.0 and laravel5
README 文档
README
This package is unmaintained.
I do not intend to continue development on this project due to changing priorities at my day job. I'll keep the repo up in case it is still useful to anyone.
Thanks @Bukashk0zzz
Allows phpBB (3.0 & 3.1) auth over Laravel 5
For Laravel 4.* see r-a-stone's work Auth driver to create/authenticate accounts.
Installation
Laravel
run composer
composer require callmenp/lara-auth-bridge
add service provider
Register the Service Provider by adding it to your project's providers array in app.php
'providers' => array( 'CallMeNP\LaraAuthBridge\LaraAuthBridgeServiceProvider', );
edit config
Change configs config/lara-auth-bridge.php
// Create a secret app key in 'appkey' => 'yoursecretapikey' // Update the column names used for the Laravel Auth driver 'username_column' => 'user_login', 'password_column' => 'user_password' // Set true if you use multiAuth, false if default Laravel Auth 'client_auth' => false
exclude URIs from CSRF protection
In file app/Http/Middleware/VerifyCsrfToken.php add
protected $except = [ 'auth-bridge/*', ];
More info how to exclude uris on laravel site
phpBB 3.1
copy files
Copy all files in the phpBB 3.1 directory to your phpBB install
edit config
Edit the file located at {PHPBB-ROOT}/ext/laravel/bridgebb/auth/provider/bridgebb.php
define('LARAVEL_URL', 'http://www.example.com'); //your laravel application's url define('BRIDGEBB_API_KEY', "yoursecretapikey"); //the same key you created earlier define ('LARAVEL_CUSTOM_USER_DATA', serialize ([ 'email' => 'user_email', 'dob' => 'user_birthday', ])); // Update the columns you want to come from Laravel user to phpBB user
setting
Login to the phpBB admin panel enable bridgebb extension and after set bridgebb as the authentication module
callmenp/lara-auth-bridge 适用场景与选型建议
callmenp/lara-auth-bridge 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.11k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2015 年 06 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Bridge」 「laravel」 「phpbb」 「phpbb3」 「laravel5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 callmenp/lara-auth-bridge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 callmenp/lara-auth-bridge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 callmenp/lara-auth-bridge 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Soluble PHP Java bridge integration
Bridge between JMS Serializer Bundle and Superdesk Web Publisher.
Builds a Bridge between Zend Expressive and Plugin Managers of Zend\MVC
Library for shortening post text in phpBB 3.2.x
Módulo base para Magento
Adds syntax highlighting to code blocks using highlight.js
统计信息
- 总下载量: 1.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-18