picasso250
V2EX  ›  PHP

不超过 1000 行的 PHP 框架 https://gitcafe.com/picasso250/PHP-tiny

  •  
  •   picasso250 · Feb 16, 2015 · 3790 views
    This topic created in 4137 days ago, the information mentioned may be changed or developed.
    So the right way is to proxy composer. But I'd like to chose a wrong way.

    I wrote a small framework, which has less than 1000 lines. I'll keep it as simple as possible, also helpful.

    If a function can do it, I will not bother a class.
    2 replies    2015-02-18 12:22:30 +08:00
    Chappako
        1
    Chappako  
       Feb 18, 2015
    DB.php, Logger.php, lib.php 这风格,看着头疼
    function try_json_decode, function Service 看着也头疼
    picasso250
        2
    picasso250  
    OP
       Feb 18, 2015 via Android
    @Chappako 我来解释一下。首先,我希望尽量简单,所以尽量使用函数,所以函数命名用的是underscore风格。至于说Service,这个函数有点特殊,因为它返回的都是对象,所以也就首字母大写了。
    DB因为是缩写,所以使用全部大写。至于其他,都是依照php api的命名规则的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3030 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:59 · PVG 22:59 · LAX 07:59 · JFK 10:59
    ♥ Do have faith in what you're doing.