nucleus
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:A zero-conf PHP ORM
Nucleus is a zero-conf ORM for PHP. Simple to install, without any dependencies, Nucleus makes it easy to write queries without touching SQL.

```php
get('posts');
```

Favoring convention over configuration writing a complex join statement is as simple as specifying which tables to include. Using standard naming conventions an entire SQL statement can be generated by simply running:

```php
get('posts, users, tags, comments, comments.users')
```

Once you've run a query you have access to its properties and related objects through standard PHP OOP practices. For example:

```php
title;

	// The related comments
	foreach ($post->comments as $comment) {

		// Comment data
		echo $comment->text;

		// Nested data
		echo $comment->user->name;
	}
}
```

At this point the library is simply a query library. There is no ability to update or save data.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。