Giter VIP home page Giter VIP logo

betephp's Introduction

BetePHP

Build Status Latest Stable Version License

BetePHP is a lightweight, high performance PHP framework. we believe a good PHP framework should be simple, clean and don't effect performance too much, BetePHP is combined by some frequently used component, without dependency on any composer package, the main feature include:

  • Flexible route engine.
  • High performance.
  • Robust components.
  • Uniform api style.

Documentation

Contribution

Thank you for considering contributing to the BetePHP framework, please fork the corresponding repository, submit pull request to it.

BetePHP: https://github.com/betephp/betephp

BetePHP core framework: https://github.com/betephp/framework

Documentation: https://github.com/betephp/docs

betephp's People

Contributors

eccozhou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

betephp's Issues

这个框架的数据库操作疑问

现在项目远不止查询单条或单条信息,如果在使用联表,多条件的时候bete中应如何写 。
例如实现
select a.id,b.name from table a left join table2 b on b.id=a.id where a.id=1
又或是多条件的状态
select * from table a=1 and (b=1 or c=1) or d=1 类似这些复杂的 and or 时,要如何写那个,我看文档上无介绍。只是简单常见的sql拼写。

DB类的querybuild怎么封装的?

基本的查询都是够用的,但是想使用join和union 没有办法使用,我只能借助db弄一个原生的pdo->query()进行查询,真的,大神,你的文档能不能稍微再多写一些内容呀,
非常感谢你的框架,基本上是我用的框架之中比较优秀的,就是没有推广开
我自己封装了smarty模板组件,和balde模板组件
这种组件式的开发也很方便,希望能在组件开发文档上详细
另外路由方面也写的很少的文档,希望可以多一些
希望可以得到你的回复,

关于验证器的问题

是否有考虑过验证器的规则字符串来个validatorBuilder呢
'name' => 'required|chinese|between:2,20',
可以写成:
'name' => VB::required()->chinese()->between(2,20)->toString(),
我不知道你们实际在生产中怎样去写验证规则的, 但如果是每个去写一遍这个字符串的, 那就略显生猛了.

当然验证器和规则甚至也可以耦合在一起直接得其值:
$age = V::post('age')->required()->between(0)->toInt();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.