Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125284 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 82FB71A00BD for ; Mon, 26 Aug 2024 18:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724696924; bh=CdEoHJyN1TrE4Q0KtjGBk+/SpXrSOKVottM4CADblas=; h=Date:From:To:In-Reply-To:References:Subject:From; b=O4JJ9Of1Ak/fp1DWe7TN06Q/1nhIS+fJU+OcwUnNFHsOpw9MwhsukU9HGOoEW2Yrg ybrb9SShqcZ9/6dbwKbkF/1TvFrB92v6iz9OasmJM3CLScZiS0xiy+xtKS2Sdrjv5z cmZe6Cua1otWvBVAG0e/H9O8f6kzLRafpBl8mPU8cRlZgla16DlW44D810mQpTatAV MG0XWJsA+ywjvagC3g5MN2BFX9s+a+jP99k9/cs4LqeoImJPwDqSUKAWPltuXga/cT m2Y2LB7fQ7QB+LMklUt5ygGugl4O/LpBMSfnP67bPouaK2l8iMUwWkHhcxrAZbSCli uqk+s3Tnv36/g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3510E18004A for ; Mon, 26 Aug 2024 18:28:43 +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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 ; Mon, 26 Aug 2024 18:28:42 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 877CB114EA2A for ; Mon, 26 Aug 2024 14:26:49 -0400 (EDT) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-03.internal (MEProxy); Mon, 26 Aug 2024 14:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm1; t=1724696809; x=1724783209; bh=Rwh3AxG0p2SaLqtteuztK VTGQ9dvW//BaX49+c46alU=; b=gnixSnuhNprCo/zElXfD/Y2kCG6tPyCp7dkGN NiobBdYqFMka5SM8Mwq4v6n3U77dlToJV2JuIb5jfUQ4hqGv+um0GdLFyqW8pctc 0Z6DoH85QeKK26cNoU1mPS4vyB49AbceKUKIFe7yDRm10fgp64G/6KbNoUm5AXyg uxfUyzxKcY1u/0Sd75l5jd31Zca0o4JMYCISFIfHYippRoOb26sFviBLGEmaZGMQ IsNXdbNAeqV7FJeFtNn1NvcB+VOaLd8dW0rMuNSYaqOGGY4KbLsKuRj4GQp6tEdo byA0ZCIJdZVjUH5TrM7vs86/X+XWCnG+/p99CS1upEtCca2hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724696809; x= 1724783209; bh=Rwh3AxG0p2SaLqtteuztKVTGQ9dvW//BaX49+c46alU=; b=N JxFArJ+HmHldYk/Wq//5OyPkUAbu9n2gqbZnmT6qNNXNZkGFHTTvIgDBdL58Y3Mw xmrFIuxuEQz9+ULV/IdZO1af+45xa+ntocJbbMmEdGMiEL18E1JY04wqdJd5kQyU XN7cNnFkL7KseGRSP6s+dNsnPf8RS8vg/PdRUAger9K2i2AIG9LSMvPfkBDXDUOs npzmI2fEfhvEdluxhXWMAouaidDweH3jVEe576UTduy2he/wHU+ZuuNm/Piu8R7h H+VTXK9wqhF3qFPNkdnI8KPCGb0RLvurhp9r5YT4m3MdClQCXnOI7B4alIV752xX 162RtMlckIpR8EJEYLbow== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvkedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtjeertdertddt necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepleeffeelvedvffeujefg geevvefgtdehhfevteeggeefffdtkeevhfevgedvhedunecuffhomhgrihhnpehphhhprd hnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnh gspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgv rhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3596929C0064; Mon, 26 Aug 2024 14:26:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 26 Aug 2024 13:26:28 -0500 To: "php internals" Message-ID: <450845aa-961a-4b03-9ae3-9a181e1e6405@app.fastmail.com> In-Reply-To: References: <642cb3ea-bf51-4832-8539-0540742000e1@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-party Packages in PHP Documentation and Web Projects Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Mon, Aug 26, 2024, at 1:06 PM, Bob Weinand wrote: > Hey Jim, > > On 26.8.2024 19:44:18, Jim Winstead wrote: >> Hi, >> >> 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. >> >> Jim > > > 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). > > The point of the PHP documentation is to describe the PHP runtime and > PECL extensions, which are both officially distributed through php.net. > > 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). > > > > 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. > > As such I strongly condemn the idea of inclusion of this guideline. > > > > 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. There's two separate questions here, I think, which should probably be addressed separately. One is whether PHP.net code can *use* third party libraries (and be open about it). Eg, would it be OK if Phd (the documentation compiler) used Composer for autoloading? Used symfony/serializer or crell/serde in some way? Used ramsey/uuid as an internal implementation detail? Right now, the answer is de facto no, with some unclear exceptions. I very firmly believe the answer should be a strong YES, or at least a "mostly", because doing otherwise hamstrings our ability to actually do the much-needed work of keeping the infra going. The other is whether the documentation should recognize the rest of the ecosystem, or be "just" "things in the php org on Github." I can definitely see the potential for scope creep here, and we should be mindful of that, but at the same time, having an official first-party "where to start with the ecosystem" place is extremely valuable! Sending someone into PHP without recognizing the existence of Composer, which has basically no competition, is doing them a gross disservice. Telling them about PHPUnit, which is overwhelmingly the most popular testing system but there are others (mostly built on top of it), I would lean yes but I can see the argument against. Recommending a template engine and listing just Twig and Blade but not Latte, for example, I can totally see where that becomes an issue and why we wouldn't want to do that. My recommendation on the GitHub thread was, and still is, to make it a one-off vote in each case. We had a one-off vote to recognize the Foundation on php.net and direct people to it. I'd favor a one-off vote to allow talking about Composer/Packagist in the docs, and I would vote yes on it. I'd probably vote no for a one-off vote to mention Twig. PHP.net is the starting point for people in the PHP ecosystem, good or bad. We don't need to take ownership of the whole ecosystem or documentation therein, but at least providing jumping off points to obvious sources (Composer/Packagist, phptherightway.com, etc.) would be doing a good service for our users. --Larry Garfield