Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125300 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 201421A00BD for ; Tue, 27 Aug 2024 00:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724718030; bh=BqWm06V1907K/5prl7JxiOanGIoTf8Y84kkA92o8Mxg=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=dhNRNtw4j7KNxVZUbkXzADPKR0njnYwA/ZXmo0m7NZruMa+bkHN3R5bvGWFzP9Ghv 9njkku3d3KgHjarjq8914tVh6CEtuzYrkKHNfS0AX9gdXujKKHLSMjGPsKlWyWV9b+ vamL/OcyhbxgbKP8A2/8KxpvSp8eMHOsWkq6F7MwUqOYr3wQflceAdcNSsONc+6z6f NUFkrW2XOJxyWPWeNl3JclPmbWcPEuVzfvU3NpRKkR8wth3Rrpdh+4DImjnllaCBwM Ko78oMIsv7++lUAqA9uK97Ogh0jdAms8mzl3hhaMazXISRv2ww83wu0ThPuf9M5oCW BHwdOSpB5vCqQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 064ED18004A for ; Tue, 27 Aug 2024 00:20:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Aug 2024 00:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724717914; bh=BqWm06V1907K/5prl7JxiOanGIoTf8Y84kkA92o8Mxg=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=d4f5zfw75bYiY01Lt7PUr9rHCY7eM0xO0IOKnuhl9h9e/F+Jh3FWfZv6ZxQqZE9kv yg8I8B0uI2FgRA+eZi7p5Bu/JmVLiLah9MoAMgQ8ntySJbowKDCwCWhgDRTMGn6c/E YHDpgn7TX5WjdZbEoCGkgFXyb6tLlsbMz+IxEzVtdYIEHFehA0lkJtnwe1i7qgb51f Dr7i6bwJ2v6vLvvs3s0rgaPqSho9ly8aBujUmpdbGdJOiKAOLgEXbgBjBA0fKx5sta d51TColqMKikX0yDWfyDm644ENeFz/67w7DPpy/SkwrOunmw3tywKxAvUWR1FGaMSG +Ntn3hr0SToLw== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 18BCC10C02C; Tue, 27 Aug 2024 01:18:34 +0100 (BST) Date: Tue, 27 Aug 2024 01:18:34 +0100 (BST) To: Bob Weinand cc: Jim Winstead , internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-party Packages in PHP Documentation and Web Projects In-Reply-To: Message-ID: <663bea3c-a8e7-4881-2bcb-971a96dea9cb@php.net> References: <642cb3ea-bf51-4832-8539-0540742000e1@app.fastmail.com> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Mon, 26 Aug 2024, Bob Weinand wrote: > On 26.8.2024 19:44:18, Jim Winstead wrote: > > > > Another RFC around process: > > https://wiki.php.net/rfc/web-and-doc-use-not-endorsement > > > > Feedback would be appreciated. My intention is to start voting on > > September 9th unless there is still ongoing discussion. > > Thanks for bringing this up - I also suggest that we make this a > binary choice - either we adopt the proposed language or its opposite. > > I.e. a rejection of this should codify that statement in the negative. > > I do in particular reject the notion that we should document > third-party projects (usage for our infra is fine). I think this is short-sighted. Currently, our main website, php.net, does not have useful installation instructions. We have a "Download" tab, which points to tarballs. Who still installs tarballs like this? Nobody does. It's either distribution packages, or installers such as XAMPP, or MAMP, or whatever. We are doing our (potential) users a disservice by not explaining the reasonable ways of installing PHP. We should replace our "Download" page with something that people would actually benefit from. Just like our home page is just boring release announcements. This should have much more interesting stuff such as how, and when, to use the great new features that we have been adding in the last decade. > The point of the PHP documentation is to describe the PHP runtime and > PECL extensions, which are both officially distributed through > php.net. I also think we are not doing PHP a favour by refusing to mention the main way how developers now install libraries: Composer. It doesn't have to be a comprehensive guide, but it is ludicrous to not even have a page in our documentation that describes how modern PHP applications get (and should) get bootstrapped. We will have the same argument eith PIE (working title) soon too. Should we promote a specific framework? No, probably not. Should we endeavour to rewrite all of our internal stuff in Symfony, or Laravel, or Nette, or Zend Framework. Also very much not. But not even have a *link* to Composer and how it used for modern PHP development is just plain stupid, like having a most light hint at how you effectively debug PHP code. Our users *want* to know how to do things properly, and the documentation needs to reflect that. > Anything not related to these does not belong into the manual, much > less into core documentation (like language/oop5 autoload.xml, to take > the example from https://github.com/php/doc-en/pull/3677/files). Where PHP originally had the arguably the best documentation, this has slipped. Our langauge sections in the manual are dry, and only explain what the language syntax are. It doesn't describe how these features are useful, when you might want to use them, what related development patterns and practises are. This *absolutely* belongs in our documentation. > Changing this current unwritten rule is an invitation to implicitly > promote specific projects. The question is really where does it end? > Would we for example also mention PSRs as "widely followed guidelines > for interoperability" or something? It's a strong invitation for some > scope creep. Why not? It's how modern PHP development works. We don't have to go into the intricacies on how PSRs get developed, but not even mentioning best practises doesn't seem particularly useful. > There are, ultimately, enough ways for people to learn about the PHP > ecosystem, the php.net documentation is none of them. If I go to > php.net, it's because I want to learn about the runtime, not its > ecosystem. And that is how you will find that the "new" languages will "win". If we don't promote how modern PHP Development works, then there will be more "PHP, a fractal of bad design" articles to come for decades. We *must* do better than this. It probably doesn't all need to be in the documentation (doc-en), but it absolutely belongs on our website. cheers, Derick