Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111841 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37458 invoked from network); 4 Sep 2020 14:46:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Sep 2020 14:46:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 094671804DA for ; Fri, 4 Sep 2020 06:52:23 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 4 Sep 2020 06:52:22 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id a12so6129230eds.13 for ; Fri, 04 Sep 2020 06:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eSnDqj8Bf0raSj6rUJ+oN9kKBaVpNo6ttp4kkr3ANH8=; b=fp4B4KcY40fW/ZSqSC22xSjKaaebXVNies+sraTJHmN0V/cIBMF5+nmyRU8iRxcLnO OkAil+7LbQy47B1XQDF7NBVs4BtnD8ethrZpR6Hou45zHgvyMI9QkvEAz46kWGLQESDM 62wMwHmZnHSS5h6z9KZLmjmODwD+dE2jON7JlXjyI86tQGm1/IjnDeU1MG3sxlQUMkjA OpIjNX8lMiF5sJ7Zm1i4m6X2biOkDibxT/E88nLcZKfG0hI/jpk5VkwW+4YBh6CxsAC3 kNSB7GpjkN+5mFeXo1Wao40PF2G1MEVpsnf5hjjfzdfTAUwcy0STrabVniZ6TvPtny0a PM8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eSnDqj8Bf0raSj6rUJ+oN9kKBaVpNo6ttp4kkr3ANH8=; b=QEAMxtJY+CF5eDkdaRRr+lLxIGqujZYxHWkSGZj9LXc/LSsHLQ3zXeYIXvG+hkQjI9 UH8cfqLsBbF7OH45ciaE8AT9/kV4YYd6I7q2I4Tt4IDwqwjWP//DS34SEMR76Nr6ehYi K4NrBSspztKPrJkP9Xpxc5X43RK9mLaO/gbVM4oFBNMtXR8/NTkqh81z8TEnPtQsmNTp s4VABN/psUDXvwtmuMErLfYYJKxyzhHLwmwcwhiuUxSlDVvI28TEJ1JEGg1y2cSr8N+A nC1/Qjt8iDkRO/IuWWS1e1epsJFqddkVIZvumF0z2QurFsAUb2Dxkl1Sm7rLAouiI0m3 XjoQ== X-Gm-Message-State: AOAM533vAy8UsjoTACu6ts6yENC/hYMuUqKOKhOhDY43GPQ5ZqMPlW0n tKvFx8+JQnedyTsqGwNDJkz6CziuLRdYqll/3xY= X-Google-Smtp-Source: ABdhPJzhcCmvV5jrDXyofxi5EZERtJ3TgvAxkpPC9XuMd77f10cEo68xA259kcwlCISoY/u0nb0WW7f1dXPVGd27eVc= X-Received: by 2002:aa7:d5d2:: with SMTP id d18mr4448899eds.115.1599227541247; Fri, 04 Sep 2020 06:52:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 4 Sep 2020 15:52:09 +0200 Message-ID: To: Tymoteusz Motylewski Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000082db8905ae7d2d75" Subject: Re: [PHP-DEV] Use PSR coding guidelines in php.net docs (instead of PEAR-CS) From: george.banyard@gmail.com ("G. P. B.") --00000000000082db8905ae7d2d75 Content-Type: text/plain; charset="UTF-8" On Fri, 4 Sep 2020 at 15:50, Tymoteusz Motylewski wrote: > Hi, > Right now (as stated here: http://doc.php.net/tutorial/style.php) the code > style used in PHP documentation is PEAR-CS > https://pear.php.net/manual/en/coding-standards.php > > The problem is that: > - PEAR-CS does not cover new PHP versions (e.g. namespaces are missing) > - it has a very little adoption > - it's not maintained > - the whole PEAR is becoming obsolete > > I suggest that PSR-12 should become the coding standard for PHP docs. > > I've created a ticket https://bugs.php.net/bug.php?id=80060 > and got redirected to mailing list > > "The PSRs are unofficial community-written guidelines for interoperability > between frameworks and projects. If PHP were to follow their guidelines > then that could be interpreted as an endorsement - reasoning that extends > to other areas, such as why php.net does not employ a popular framework." > > I would understand the concern if we were talking about certain commercial > product, tool or framework. > Here we're talking about a standard which: > - has a broad acceptance in the PHP industry > - doesn't have an alternative thus became the one standard in the industry > - its adopted by many tools and framework from the PHP community > > > "If PHP were to follow their guidelines then that could be interpreted as > an endorsement " > > I agree, and I would love PHP to either set standards, or to endorse > existing standards. Because right now you can read this argument that PHP > is endorsing obsolete PEAR-CS, which I hope is not true ;) > > In general I would like to see more PSR being mentioned in PHP docs, e.g. > PSR-4 in https://www.php.net/manual/en/language.oop5.autoload.php > > In comparison to other languages it's hard to learn PHP from the official > docs, as no tooling or best practices are outlined e.g. I did not find any > mention of composer in the docs. > > I would like to hear your opinion about this topic. > Thanks > Tymoteusz > This is the wrong list to have these discussions, please post on the PHP Documentation list instead. Best regards George P. Banyard --00000000000082db8905ae7d2d75--