定制 jepster/yiipass 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jepster/yiipass

Composer 安装命令:

composer create-project jepster/yiipass

包简介

Collaborative passwords manager in webbrowser. Based on Yii2 framework.

README 文档

README

Collaborative passwords manager in web browser. Based on the Yii2 PHP framework. Ideal for intranet usage for teams. Fast and handy access from the internet. It provides the following features:

  • Account credential and user management via web browser.
  • Assign account credentials to various users.
  • Passwords are saved as encrypted hash in the database. You can specify an unique key for password encryption in your configuration (config/params.php).
  • Copy username or password fast into clipboard.
  • Responsive user interface by bootstrap frontend framework.
  • Import and export functionality via open KeePass XML format. Many apps and desktop programs for all operating systems are using the KeePass XML format. For example:
  • Last but not least: easy and fast to modify and extend, because it's based on the excellent Yii2 PHP framework.
  • Single user mode. Just set it along with a hash for encoding and decoding in your config/params.php file. Then sign in with .htaccess and .htpasswd protection.

Getting Started

YiiPass uses SQlite database by default. That allows you to quickly check the YiiPass application without configuration hassle. The installation works via the Composer PHP package manager, so you can test YiiPass very quick.

If you're already using Composer, you need only 1 command to install YiiPass:

composer --stability=dev --keep-vcs create-project jepster/yiipass yiipass-dev

Please let your web server point to the "web"-directory which will be created afterwards. Like it's default in Yii2 framework.

The user for start is:

  • username: admin
  • password: admin

All set!

Then you can quickly start using YiiPass via accessing it from the web browser. The following screenshots will show you how to use YiiPass.

###Search fast Search fast

###Copy, edit, delete and view fast Copy fast

###Integrate with open KeePass format KeePass

###User permissions Permissions

###Source code project structure Read more about the application structure in the Yii2 PHP framework guide. Folder structure

Use MySQL, MariaDB, PostgreSQL, CUBRID, Oracle or MSSQL instead of SQlite

Change the configuration to the desired DBMS in the config file (config/db.php). An instruction can be found at bsourcecode.com. After the database config is set, you need to apply the database migrations via the command line program from Yii2 (more about the command line program in Yii2).

yii migrate --migrationPath=@yii/rbac/migrations
yii migrate --migrationPath=modules/yiipass/migrations

Now your database is feed with the schema.

The SQlite database, which is used per default, is located in the application root folder. The filename is yiipass.sqlite.

Troubleshooting

PDO_SQLITE driver not present on Ubuntu Linux server.. what to do?

Then try the following commands

sudo apt-get update

sudo apt-get install php5-sqlite --fix-missing

service apache2 restart

The first one updates the package manager sources. The second one installs the PHP5 SQLite extension and fixes missing package sources. The third one restarts the Apache2 web server. If you're using the Nginx web server, the Nginx Beginner's Guide could help you out.

Mcrypt extension is missing on Ubuntu Linux server

Then run the following commands.

sudo apt-get install php5-mcrypt

php5enmod mcrypt

service apache2 restart

The first command installs the PHP5 mcrypt extension. The second one enabled the extension in PHP. The third restarts the Apache2 webserver. If you use Nginx f.e., the first both commands could help you also.

Data cannot be written into database

The there're errors like follows:

SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

or

SQLSTATE[HY000]: General error: 14 unable to open database file

Then make sure that the folder where the yiipass.sqlite SQlite database resides, has the correct permissions. Also the SQLite database itself must have the correct permissions. By default, this file is located in the application root-folder. The folder and the file must be owned by www-data, if you use apache. Further information

Known issues

YiiPass is still in development. Please mind the following issues. Help would be appreciated. Please consider the issues management functionality here on GitHub. Please ask me (jepster) if you want to learn more about the development.

  • Last access field in account credential is not beeing updated.
  • There should be a second password form field on the account credentials edit page. That way there would be more control about the password validity.

Bugs, questions, suggestions?

Please feel free to contact me via GitHub. Don't forget the issues management functionality here on GitHub.

Problem

jepster/yiipass 适用场景与选型建议

jepster/yiipass 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 260 次下载、GitHub Stars 达 19, 最近一次更新时间为 2015 年 09 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「account credential management」 「password manager」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 jepster/yiipass 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jepster/yiipass 我们能提供哪些服务?
定制开发 / 二次开发

基于 jepster/yiipass 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 260
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 32
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 5
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-24