drest-master将Doctrine实体展现为REST资源结点的库

2017-12-21 15:54:0054428查看评论(0)
简介:

<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'On');
chdir(__DIR__);
$configFile = 'server-config.php';
if (!file_exists($configFile) || !is_readable($configFile))
{
trigger_error('Unable to read configuration file: ' . $configFile . ' Use server-config.php.dist as a template to create server-config.php.dist');
}
include $configFile;
$helperSet = (isset($helperSet)) ? $helperSet : new \Symfony\Component\Console\Helper\HelperSet();
$cli = new \Symfony\Component\Console\Application('Drest Server Command Line Interface Tool');
$cli->setCatchExceptions(true);
$cli->setHelperSet($helperSet);
$cli->addCommands(array(
// Drest Commands
    new Drest\Tools\Console\Command\CheckDefinitions(),
    new Drest\Tools\Console\Command\CheckProductionSettings()
));
$cli->run();

Doctrine是基于数据库抽像层上的ORM,它可以通过PHP对象轻松访问所有的数据库,例如MYSQL,

REST与技术无关,代表的是一种软件架构风格,REST是Representational State Transfer的简称,中文翻译为“表征状态转移”

REST从资源的角度类审视整个网络,它将分布在网络中某个节点的资源通过URL进行标识,客户端应用通过URL来获取资源的表征,获得这些表征致使这些应用转变状态

所有的数据,不过是通过网络获取的还是操作(增删改查)的数据,都是资源,将一切数据视为资源是REST区别与其他架构风格的最本质属性

对于REST这种面向资源的架构风格,有人提出一种全新的结构理念,即:面向资源架构(ROA:Resource Oriented Architecture


drest-master将Doctrine实体展现为REST资源结点的库

申明:本站所有资源都是转载各大下载站,或由网友投稿发布,请自行检测软件的完整性,如有侵权请联系我们删除下架,联系方式:admin@php.cn

相关推荐

drest-master将Doctrine实体展现为REST资源结点的库

drest-master将Doctrine实体展现为REST资源结点的库
47928

Requests-masterHTTP的PHP库

Requests-masterHTTP的PHP库
76935

php生成excel文件到指定目录的函数类

php生成excel文件到指定目录的函数类
5287210

数组排序类库

数组排序类库
1078176

validation-Laravel的验证库

validation-Laravel的验证库
134577

用于开发PECL扩展的PHP库

用于开发PECL扩展的PHP库
80654

利用phpexcel对数据库数据的导入excel(excel筛选)、导出excel的类

利用phpexcel对数据库数据的导入excel(excel筛选)、导出excel的类
2412435

数组合并类

数组合并类
965151
网页评论
最新评论