简体   繁体   English

用于基本CRUD的PHP快速骨架生成器?

[英]PHP rapid skeleton generator for basic CRUD?

I have been tasked with building a simple web based system for managing a list of vehicles. 我的任务是建立一个简单的基于Web的系统来管理车辆列表。

I am interested to know whether there are any robust, clean PHP 5 frameworks / libraries that are specialized in doing this quickly. 我很想知道是否有任何健壮,干净的PHP 5框架/库专门快速完成这项工作。

They should be able to quickly build a skeleton web back-end to an arbitrary data structure with the basic functions: 他们应该能够使用基本功能快速构建任意数据结构的框架Web后端:

  • Customizable list view 可自定义的列表视图
  • Customizable edit form 可自定义的编辑表单
  • create/update/delete operations 创建/更新/删除操作

Nice to haves: 很高兴有:

  • Multi-user interface 多用户界面
  • ACL based rights system 基于ACL的权限系统
  • Localization 本土化
  • Image / File upload built in 内置图像/文件上传

Wet dreams: 湿梦:

  • A skeleton CRUD API to manage items programmatically 用于以编程方式管理项目的框架CRUD API
  • A skeleton RSS feed to inform about new items 用于通知新项目的骨架RSS提要

I am aware most big frameworks provide tools and helpers for this, but would prefer a standalone, light-weight solution that is easy to get into. 我知道大多数大框架为此提供了工具和帮助,但更喜欢一个易于进入的独立,轻量级解决方案。

Alternatively, is there a great PHP application that you would recommend looking into to modify to suit my needs? 或者,是否有一个很棒的PHP应用程序,您建议您根据我的需要进行修改?

As far as building skeleton apps goes, nothing comes close to the Yii framework . 就构建框架应用程序而言, Yii框架几乎没有任何内容。

From the site: 从网站:

MVC, DAO/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, authentication and role-based access control, scaffolding, input validation, widgets, events, theming, Web services, and so on. MVC,DAO / ActiveRecord,I18N / L10N,缓存,基于jQuery的AJAX支持,身份验证和基于角色的访问控制,脚手架,输入验证,小部件,事件,主题,Web服务等。 Written in strict OOP, Yii is easy to use and is extremely flexible and extensible. Yii使用严格的OOP编写,易于使用,非常灵活和可扩展。

It also includes CRUD code generation. 它还包括CRUD代码生成。 Headed by the guy who did Prado. 由做普拉多的人领导。

如果你不想要一个大框架,你可以查看phpactiverecord

我推荐CakePHP

多年来我见过的最好的http://www.grocerycrud.com/用于codeigniter

I've seen awesome demos of the instant blog in Rails and Django and Symfony. 我在Rails,Django和Symfony中看过即时博客的精彩演示。

Looking at Zend, Cake, Symfony, Symfony seems the most like Rails/Django. 看看Zend,Cake,Symfony,Symfony似乎最像Rails / Django。 Check out the 10 minute (yeah, super sped up!) demo. 查看10分钟(是的,超级加速!)演示。 It's pretty sweet: 这很甜蜜:

http://www.symfony-project.org/screencast/cart http://www.symfony-project.org/screencast/cart

My experience tells me that there's no framework, lightweight or otherwise that you can easily do what you want quickly if you don't know it. 我的经验告诉我,没有框架,轻量级或其他,如果你不知道它,你可以很容易地做你想要的快速。 So that's where the tutorials come in. You really need a nice ORM to avoid all that mess with the DB and or reinventing that with a CMS. 这就是教程的用武之地。你真的需要一个好的ORM来避免数据库的所有混乱,或者用CMS重新发明它。 So the best bet is to choose the one with the best docs, the best tutorial + screencast, in the language you know that gets you closest to your requirements by just changing the names of the variables. 因此,最好的选择是选择具有最佳文档,最佳教程+截屏视频的文档,使用您知道的语言,只需更改变量名称即可使您最接近您的要求。 I know Django can do all that you're asking with Django 1.2, but with PHP 5 being the requirement, Symfony and it's ORM is my first suggestion. 我知道Django可以用Django 1.2做所有你想要的,但是要求PHP 5,Symfony和它的ORM是我的第一个建议。

Yii looks like something I'll be taking a look at right now! Yii看起来像我现在要看的东西! Yii-Haaw! Yii开发Haaw!

Here's Yii's screencast of blog making: http://www.yiiframework.com/screencast/blog/ 这是Yii的博客制作截屏: http//www.yiiframework.com/screencast/blog/

Not bad so far! 到目前为止还不错! But it's quite a learning curve to get the blog working. 但要让博客发挥作用,这是一个很好的学习曲线。 Very similar to Rails. 与Rails非常相似。

Sapphire has a lot of promise. 蓝宝石有很多希望。 I have used the CMS built on it - SilverStripe - for a few projects and it's very nice. 我已经使用了基于它构建的CMS - SilverStripe - 用于一些项目,这非常好。 But I haven't dug into the back-end too much. 但我没有过多地挖到后端。

From the website: 来自网站:

  • Our Object-Relational Mapper takes care of your data. 我们的对象关系映射器负责处理您的数据。 Define your data model using our simple PHP5 syntax and our ORM does the rest. 使用我们简单的PHP5语法定义您的数据模型,我们的ORM完成剩下的工作。
  • Tell Sapphire about your data model, and you get 3 interfaces for free. 告诉Sapphire您的数据模型,您可以免费获得3个接口。 A RESTful API, a SOAP API, and an admin editing interface. RESTful API,SOAP API和管理编辑界面。

It's not exactly lightweight, but its core is ~1.3 MB but meets a lot of your "nice to haves" 它不是完全轻巧,但它的核心是~1.3 MB但是遇到了很多你的“很棒的东西”

There are several PHP frameworks that meet your requirements (basic requirements). 有几个PHP框架可以满足您的要求(基本要求)。 You should use a framework that you are most familiar. 您应该使用您最熟悉的框架。 If you do not familiar with any framework, I suggest you to use the CodeIgniter. 如果您不熟悉任何框架,我建议您使用CodeIgniter。

I've been looking for a drop-in admin panel like this too, so far I've 2: 我一直在寻找像这样的插入式管理面板,到目前为止我已经2:

AjaxCrud - http://ajaxcrud.com/ AjaxCrud - http://ajaxcrud.com/

Peek from Code Canyon - http://bit.ly/toKKrB 窥探Code Canyon - http://bit.ly/toKKrB

Love to hear any other suggestions! 喜欢听到任何其他建议!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM