6.7. Propel - smart, easy object persistence

简介:

ORM ( object relation mapping )

即将数据库表映射成对像,实现通过实例化对像来访问数据库

本文主要介绍Propel - smart, easy object persistence

6.7.1. 环境配置

配置php.ini

在php.ini文件中加入:

extension=php_pdo.dll

6.7.2. PEAR Installer

$> pear channel-discover pear.phpdb.org
$> pear install phpdb/propel_generator
$> pear install phpdb/propel_runtime
			

Adding Channel

D:\>pear channel-discover pear.phpdb.org
Adding Channel "pear.phpdb.org" succeeded
Discovery of channel "pear.phpdb.org" succeeded
			

propel_generator 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_generator
phpdb/propel_generator requires package "channel://pear.phing.info/phing" (versi
on >= 2.2.0)
downloading creole-1.1.0.tgz ...
Starting to download creole-1.1.0.tgz (92,633 bytes)
.....................done: 92,633 bytes
install ok: channel://pear.phpdb.org/creole-1.1.0
			

propel_runtime 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_runtime
downloading propel_runtime-1.2.0.tgz ...
Starting to download propel_runtime-1.2.0.tgz (45,959 bytes)
.............done: 45,959 bytes
install ok: channel://pear.phpdb.org/propel_runtime-1.2.0

D:\php-5.1.4-Win32>
		




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
Linux API
解决swagger提示Failed to load API definition Fetch errorundefined
解决swagger提示Failed to load API definition Fetch errorundefined
783 0
|
缓存 JavaScript 前端开发
NestJS:理解ORM(Object Relational Mapping)
NestJS:理解ORM(Object Relational Mapping)
145 0
|
前端开发 Java
java:How to use variable parameter? (easy to understand)
It's the first time to write a blog in English for me. (About variable parameter)
96 0
java:How to use variable parameter? (easy to understand)
|
XML JSON JavaScript
Simple Jsonpath Support
我们在日常开发中,json几乎随处可见,但是繁琐的json,也给我们解析带来了很多烦恼的问题,多层级的解析,以及各种嵌套对象的解析,那有没有一种更简单的解析方式呢?
145 0
Simple Jsonpath Support
|
Python
unable to import 'smart_open.gcs', disabling that module
unable to import 'smart_open.gcs', disabling that module
115 0
|
Java 数据格式
Swagger报错:missed comma between flow collection entries
Swagger报错:missed comma between flow collection entries
414 0