holgersielaff/potatoe
Composer 安装命令:
composer require holgersielaff/potatoe
包简介
A small PHP 7.0 Framework
README 文档
README
Potatoe is a PHP7.0 LibraryDependencies
On Debian Systems version >= stretch mandatory PHP >= 7.0
apt-get install php
optional apache2 mysql postgres libapache2-mod-php7.x
apt-get install apache2 mysqp postgresql-9.3 libapache2-mod-php
Installation
Best done with composer
composer require holgersielaff/potatoe
After this, you can set some custom params with
cd vendor/holgersielaff/potatoe && php install.php
If you want to have the latest snapshot
git clone https://github.com/holgersielaff/potatoe
\Potatoe\AutoDBRec
A Database Abstraction that can be called very easy
Including:
- Paging
- Searching
Example
Init \Potatoe\AutoDBRec::factory($options); Execute Get an array of Database objects:
\Potatoe\AutoDBRec::newArray("SELECT foo, bar FROM baz");
Get only one object (first one if multiple)
\Potatoe\AutoDBRec::newRec("SELECT foo, bar FROM baz WHERE id = 1");
\Potatoe\HKP
Ein HKP Server für PHP.
Folgende Treiber sind verfügbar:
- GPG (testing)
- LDAP (unstable)
- Postgres (dev)
- MySQL (dev)
Mit Driver GPG auf lokales ./gnupg
$config = new \Potatoe\HKP\Config\GPG([
'POTATOE_PGP_HOME' => '~/.gnupg'
]);
// 0.0.0.0 für broadcast
$server = new \Potatoe\HKP(\Potatoe\HKP::DRIVER_GPG, $config);
$server->server(8080, '127.0.0.1');
Mit Driver LDAP auf LDAP Server
$config = new \Potatoe\HKP\Config\LDAP([
'POTATOE_LDAP_HOST' => '192.168.0.1',
'POTATOE_LDAP_BIND_DN' => 'a=dmin,r=dn',
'POTATOE_LDAP_BIND_PASS' => '*****',
'POTATOE_LDAP_BASE_DN' => 'p=ath,t=o,b=ase'
]);
$server = new \Potatoe\HKP(\Potatoe\HKP::DRIVER_LDAP, $config);
// 0.0.0.0 für broadcast
$server->server(8080, '127.0.0.1');
Als webserver script das ganze mit
$server->apache();
statt
$server->server(...)
holgersielaff/potatoe 适用场景与选型建议
holgersielaff/potatoe 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 03 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「rest」 「api」 「web service」 「server」 「PGP」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 holgersielaff/potatoe 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 holgersielaff/potatoe 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 holgersielaff/potatoe 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
PHP module for MySql database
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-03-08