2017 © Pedro Peláez
 

library gini

image

iamfat/gini

  • Saturday, May 21, 2016
  • by iamfat
  • Repository
  • 11 Watchers
  • 19 Stars
  • 171 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 2 Open issues
  • 38 Versions
  • 0 % Grown

The README.md

Gini PHP Framework

Gini Logo, (*1)

Gini 是一个基于松散模块依赖的MVC PHP框架,深受Kohana, Symphony和Composer的影响。, (*2)

点击这里进入GitBook阅读具体文档, (*3)

可用的Gini模块, (*4)

易用的CLI

Gini 在命令行下提供了一个 gini 命令, 和 composernpm 类似. 你能够很容易的通过少数几条命令创建CLI的应用,然后通过 gini foo bar 的方式调用., (*5)

面向对象

Gini PHP framework 基于 PHP 5 OO. 现在难道还有 PHP 框架不是 OO 的吗?, (*6)

兼容 Composer

你可以通过 Composer 来加装 Gini, 也可以独立使用 Gini, 又或者在 Gini 框架中直接使用各种 Composer 第三方模块., (*7)

Those ORM

这是一个内建的 ORM 实现, 方便大家采用 OO 的方式访问数据库. Database SQL 层完全被封装成了对象。 你可以像定义类一样的方式定义你的数据库表结构。当你实例化对象并赋值属性,然后使用 save 方法时,系统会自动将对象的属性保存在数据表中。, (*8)

同时, Those ORM 提供了有趣的符合自然语义的语法来完成原本枯燥的SQL实现 (实验中...)。 以下是个示例:, (*9)

// 查询所有名字以'J'开头, 爸爸的email中存在genee的用户
$users = those('users')
    ->whose('name')->beginWith('J')
    ->andWhose('father')->isIn(
        those('users')->whose('email')->contains('genee')
    );

内建 JSON-RPC 和 REST 的 API 与远程调用支持

以下是个示例: 1. JSON-RPC, (*10)

// Client
$rpc = new \Gini\RPC('http://gini/api');
$sum = $rpc->hello->add(1, 2);

//Server
class Hello extends \Gini\Controller\API {
    public function actionAdd($a, $b) {
        return $a + $b;
    }
}
  1. REST
// Client
$rest = new \Gini\REST('http://localhost/rest');
$sum = $rest->post('add', ['a'=>1, 'b'=>2]);

// Server
class Hello extends \Gini\Controller\REST {
    public function postAdd($a, $b) {
        return $a + $b;
    }
}

The Versions

21/05 2016

dev-master

9999999-dev

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

21/05 2016

1.5.1

1.5.1.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

22/03 2016

1.5.0

1.5.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

22/03 2016

1.4.6

1.4.6.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

21/03 2016

1.4.5

1.4.5.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

11/03 2016

1.4.4

1.4.4.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

23/12 2015

1.4.3

1.4.3.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

09/12 2015

1.4.2

1.4.2.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

09/12 2015

1.4.1

1.4.1.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

09/12 2015

1.4.0

1.4.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

02/12 2015

1.3.0

1.3.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

19/11 2015

1.2.1

1.2.1.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

19/11 2015

1.2.0

1.2.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

21/09 2015

1.1.2

1.1.2.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

21/09 2015

1.1.1

1.1.1.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

21/09 2015

1.1.0

1.1.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

14/09 2015

1.0.4

1.0.4.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

09/09 2015

1.0.3

1.0.3.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

09/09 2015

1.0.2

1.0.2.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

22/08 2015

1.0.1

1.0.1.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

18/07 2015

1.0.0

1.0.0.0

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jia Huang

13/05 2015

0.6.12

0.6.12.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

13/05 2015

0.6.11

0.6.11.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

19/04 2015

0.6.10

0.6.10.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

14/04 2015

0.6.9

0.6.9.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

12/04 2015

0.6.8

0.6.8.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

12/04 2015

0.6.7

0.6.7.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

02/04 2015

0.6.6

0.6.6.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

27/01 2015

0.6.4

0.6.4.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

19/01 2015

0.6.3

0.6.3.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

13/01 2015

0.6.2

0.6.2.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

05/09 2014

0.6.1

0.6.1.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

01/07 2014

0.6.0

0.6.0.0

Gini PHP Framework

  Sources   Download

MIT

The Requires

 

by Jia Huang

05/06 2014

0.5.0

0.5.0.0

Gini PHP Framework

  Sources   Download

MIT

The Development Requires

by Jia Huang

07/05 2014

0.4.0

0.4.0.0

Gini PHP Framework

  Sources   Download

The Requires

  • php >=5.4.0

 

The Development Requires

by Jia Huang

17/04 2014

0.3.2

0.3.2.0

Gini PHP Framework

  Sources   Download

The Requires

 

The Development Requires

by Jia Huang

10/04 2014

0.3.1

0.3.1.0

Gini PHP Framework

  Sources   Download

The Requires

 

The Development Requires

by Jia Huang

09/04 2014

0.3.0

0.3.0.0

Gini PHP Framework

  Sources   Download

The Requires

 

The Development Requires

by Jia Huang