Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125290 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 EE7351A00BD for ; Mon, 26 Aug 2024 20:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724702904; bh=ztcA0oLQDIeuN2Y7eg+a6jqap8U8gDfplG3LMqWAP3k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kRbP+a5NkZD5E2sgl9yDg+CFoIO6iSQtaeKKpHq2mUBRaz0QcXhaPHpnknEKBCZel 1wIzbXYNOIl2ItbXeKIIZ4VFV+X7358a0iFgxfXeOh1SkUqRvgZNgtMhXKbOoOiJvq ihrltqkSbT9IAJmGQdGQrBbXWEjIDfKwP8Mo5fkJCTBDbPcsfaXOJQdB5LaZ+l2qzm jPnsikUPXCcFNvFubBuvgTjETBpiKF4nU6zZ9et/65l7jWiloPnf+XTd8W+4mozByO /Fvt7irY8bAh2u6Dz2r5qAqlrSBRWNYgokzPxS7gvW6yYwKKOMblmD6yr9hhrQfZJj JC/EyNGstOHpA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DA017180077 for ; Mon, 26 Aug 2024 20:08:23 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 20:08:23 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-e115c8be0deso402014276.2 for ; Mon, 26 Aug 2024 13:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724702790; x=1725307590; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7zN3GqSyoUiNv5PtGt5cWidQdQVegl6E+AorPT0NS9s=; b=Y0sD3hCTxuelQjlNoQGEcduhb29QTBZGTLOg0vOI3RLm3olDfcvEThRCi/0ffiiEHf czmQUUzEsv62ogurTLMnjs0DhIJs036unXJHjMnDInOhpVBovo9GsIv6ePy9KkDQf1pW QRzDGRZ3iRyHNKKLRXNy35MIM6J7npfCItQLU5HCp6D3gdEMxKF/ZfkX2ZPujrfSqOWS mu5RUAKpqCamHT0q1k+UdmOoMaS15tj7SYMD5Xz+zl9464x2ZfaIC2eYXlFCNeosfcLt /xqn0dRiGW24NsKf8KCdCJ1Y4uSe1wNo0IP2UrWl20KZgRYKSuB4paoFrchcdC0Ey23h rXdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724702790; x=1725307590; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7zN3GqSyoUiNv5PtGt5cWidQdQVegl6E+AorPT0NS9s=; b=GQTEaj8iC3ZbFsDUiNGyaSCh0fhqD+Qfh4bjfvFjl0MZUBONtdeB80M5lYmwPgVy8T lyWLriUjRY0TFSX1tM3zDX1KcCcYNLwRZfzk0E4Z/dhu616ht0lWX7IyymN2OAqZ4cD6 DF5KqJUqm+ehrscRie39OhICtrF294OSHtvk86/Awz8sn/MamdUqj1RUWNQlb11XDi6q ziKHuDHZ1M0LR6TfymUrpaQb38hDaDTJlylABPPV3L+yC6vzKItxlizpf1rHumjSvUEb abJjrOQDUcewUDcOiFgguKjKMfQsJ4Ohwg6VhoaRZl7D6ZLalBdFSpM7GnWy5v6NT084 80kw== X-Forwarded-Encrypted: i=1; AJvYcCXoIrVD6FIWEsM4YGGK5wmIPpg1XcYorMW/NSbaCNPG+2UgfDfWwgNhdA0+Mf/1d1p7YHdVS74ar7U=@lists.php.net X-Gm-Message-State: AOJu0Yx8YIyS7WHbbMkFrDwA+4UVXl89f8TB2/E4HuotNh2Vohk/Vb4P orybg4osl7qheCzP8FPmF6pQm2djUT4p/TH7Pe3ZJSdsaavuErFF7SB2U6dpRzB6z6uaQIdK8mr dCx+QSU0hJdAt49eFtlmh3M7vanM= X-Google-Smtp-Source: AGHT+IHb+Kw/z5nXi6OJ4LQZTGO4p4ysC00lvT4ePYLai/5PhiXTe8NHEEeN9SUUVI1VWeo8O98Z8P+H37EwUNyj7bI= X-Received: by 2002:a05:690c:16:b0:696:c33a:9cb9 with SMTP id 00721157ae682-6c62943a8fdmr52803537b3.6.1724702789814; Mon, 26 Aug 2024 13:06:29 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <642cb3ea-bf51-4832-8539-0540742000e1@app.fastmail.com> In-Reply-To: Date: Mon, 26 Aug 2024 17:05:53 -0300 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Using and Mentioning Third-party Packages in PHP Documentation and Web Projects To: Bob Weinand Cc: Jim Winstead , internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000002158d806209ba988" From: deleugyn@gmail.com (Deleu) --0000000000002158d806209ba988 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2024 at 3:12=E2=80=AFPM Bob Weinand w= rote: > 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 PEC= L > 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? Woul= d > 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. > > > Bob > Since your message was somewhat ambiguous to me, I would like to take this opportunity to request clarification from Jim. I read this RFC as an opportunity to allow community-driven PHP projects to be embraced when it suits PHP's internals needs. For instance, I remember a few years ago a conversation about rebuilding the php.net website. The current "unwritten" rule was used to impose that a new PHP website could not use any existing PHP Framework as to not "endorse" any particular project. Same thing goes for the RFC Voting process, PSRs, Composer, etc. In a way, I agree with Bob's take that the php.net documentation should not be used to *document* 3rd-party tooling, but my interpretation of the RFC has nothing to do with documenting 3rd-party tools but instead its about mentioning or even relying on them. Current discussion about Generics going on talks a lot about phpstan and psalm and whatever comes out of the work put into Generics, I would definitely be in favour of PHP docs mentioning how Generics is already present today with those tools. Current work-in-progress from the Foundation in regards to revamping pecl involves (as far as I know) providing PHP Extensions via Composer which would be something that said "unwritten" rule could be mentioned for opposing such approach. There's also PHP community members that would be willing to work on a new RFC automation tool to improve on the process that has recently been mentioned as "suboptimal" [1]. Such community members would certainly opt to build this upon Symfony, Laravel, Slim or anything more convenient than vanilla PHP and such "unwritten" rule keeps us chained to suboptimal infrastructure= . [1] https://externals.io/message/124843#124860 --=20 Marco Deleu --0000000000002158d806209ba988 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Aug 26, 2024 at 3:12=E2=80=AF= PM Bob Weinand <bobwei9@hotmail.c= om> wrote:
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.n= et documentation is none of them. If I go to php.net, it's= because I want to learn about the runtime, not its ecosystem.


Bob

Since your message was somewhat ambiguous to m= e, I would like to take this opportunity to request clarification from Jim.=

I read this RFC as an opportunity to allow commun= ity-driven PHP projects to be embraced when it suits PHP's internals ne= eds. For instance, I remember a few years ago a conversation about rebuildi= ng the php.net website. The current "un= written" rule was used to impose that a new PHP website could not use = any existing PHP Framework as to not "endorse" any particular pro= ject. Same thing goes for the RFC Voting process, PSRs, Composer, etc.

In a way, I agree with Bob's take that the php.net documentation should not be used to *docume= nt* 3rd-party tooling, but my interpretation of the RFC has nothing to do w= ith documenting 3rd-party tools but instead its about mentioning or even re= lying on them.

Current discussion about Generics g= oing on talks a lot about phpstan and psalm and whatever comes out of the w= ork put into Generics, I would definitely be in favour of PHP docs mentioni= ng how Generics is already present today with those tools. Current work-in-= progress from the Foundation in regards to revamping pecl involves (as far = as I know) providing PHP Extensions via Composer which would be something t= hat said "unwritten" rule could be mentioned for opposing such ap= proach. There's also PHP community members that would be willing to wor= k on a new RFC automation tool to improve on the process that has recently = been mentioned as "suboptimal" [1]. Such community members would = certainly opt to build this upon Symfony, Laravel, Slim or anything more co= nvenient than vanilla PHP and such "unwritten" rule keeps us chai= ned to suboptimal infrastructure.



--
Marco Deleu
<= /div>
--0000000000002158d806209ba988--