Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125844 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 A92F81A00BD for ; Thu, 24 Oct 2024 06:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1729750425; bh=OcHQ5vfajSg3LrNTWFmPIGpg7WfnC2eMkNBp3Z25vds=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=euv7yiEjgax7W6DiO2dU89rrQUMV0TYu3bmdC3JsHcPGxf8OLEAgxCRQC+iX71wLE uYIeKH9Bxnx6odf7nG0fgWLMmnoz9I33gsk1z5XlskEWtHwLX1GAgBmlG0LfkBQklE PTA+9X+gU+8Ln5HOFGbabK84uifooiZ7cPJh/4JZ/U54h/wVjLw7ruXzz1Ew9V8m7J xgHtHwSt0BCQjNpn8k3wqUWQxaZLAOtnhdgcKuCVDsiV5ViewM9JGzo4HF5GvLVaaB qYu0iQl80XoKu6kdlq2TFxa61RGQa1HfCjxLkBsFXt5BCj83ocx8cYJNMdn7WBcW7S XvkcvtPTKPg4w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E00AC180057 for ; Thu, 24 Oct 2024 06:13:44 +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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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 ; Thu, 24 Oct 2024 06:13:44 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 3557D13800F9; Thu, 24 Oct 2024 02:11:19 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Thu, 24 Oct 2024 02:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:cc: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=1729750279; x= 1729836679; bh=wTFyFRJI7dcaHSqo0okUTHvfanqva488iyN2msZ5n5U=; b=W G9wFpFjTr+VEIlV0W+UGC5g1w5Re/naTw+zXljvnzqNMYp1xkwydWMrKThVCIYtV a5WQROQ6O3L0JQVdXCai/b4cINWU1TBlRHpbp0xjgrbCawJc+e1wLnzfdpnkphU+ WujPiYUn2DY0hKLTgrr8Y9tclCAM7pLP8DDUj8tW0EPX10bxBTMOUeC1QXahdTWN n2gj+liaJjOONMmGs7zgbbPCPUZhUejz5PwxLZIGmMgw9CopCo2Resmvw4Sy3/pH aakNCFAsme0QH6W4sjIWFN1daDtWqTbKzcKyZR95tfGUoI1uFz6XnoG638ZEdtwA 2FPdoLEfpXNlSUinS0MCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm3; t=1729750279; x=1729836679; bh=wTFyFRJI7dcaHSqo0okUTHvfanqv a488iyN2msZ5n5U=; b=fAO8+6zSXxihaQdSMXCO6+7BKykEW2SAPmOhdwj20yHj hM6ugOzyY1sDoQ1jEJdYq9+8C+D9LJd4VWRJx6VpbrjctGo2e0Ezpp+pGEEs1nha aOsL9dgqbvWtxLYWN1Oi+iJtXO46zX02mwPFa+p/ArdsQohYj2KVW0LCOpWJad/g omsQFDKFu+anhJEYd6CIrjs1v1tv3l9H/qlLZLHYkXQ2PiOd+ugqzl/Od/sbpHXZ vL3V+Nne0iogmMJ5SA/wYNqDoMDI7wEdGp+ZJ70uQ5btK1n6d9cEaBXvJWeBs0s5 61Vd7OqklGEDY/5TVQI5jL2LWVbTWtZZouHgO1hwXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeikedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtsegrtderreertdej necuhfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdrtg houggvsheqnecuggftrfgrthhtvghrnhepteefffegvdduleegkedvuedvhfeifffggfdv udejieektdeltdfgkeevfeeggfefnecuffhomhgrihhnpehphhhprdhnvghtpdhgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphhtthhopeefpdhmoh guvgepshhmthhpohhuthdprhgtphhtthhopehlrghrrhihsehgrghrfhhivghlughtvggt hhdrtghomhdprhgtphhtthhopehfvghnnhhitghlohhgsehgmhgrihhlrdgtohhmpdhrtg hpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id D31A5780068; Thu, 24 Oct 2024 02:11:18 -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: Thu, 24 Oct 2024 08:10:58 +0200 To: "fennic log" , "Larry Garfield" Cc: "php internals" Message-ID: In-Reply-To: References: <92b537ac-62f4-435c-bf55-07223cfa1915@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] Policy on 3rd party code Content-Type: multipart/alternative; boundary=d381ce535b084f71937e124edefd08e7 From: rob@bottled.codes ("Rob Landers") --d381ce535b084f71937e124edefd08e7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Oct 24, 2024, at 01:57, fennic log wrote: >=20 > On Wed, 2 Oct 2024 at 19:37, Larry Garfield w= rote: >> Since Jim's RFC proposal was criticized for being too vague, I hereby= offer a somewhat more prescriptive policy proposal on using 3rd party c= ode. (With JIm's blessing.) It's still more heuristics than rules, but= I think that's the right approach generally. It also includes a voting= mechanism to resolve edge cases when they come up. >>=20 >> I'm sure we'll bikeshed it to death, but please keep an open mind abo= ut the concept in the first place. PHP is more than just php-src, and t= hat's a good thing. We need to catch up with that reality, while at the= same time maintaining a reasonable neutrality about projects Internals = doesn't manage directly. >>=20 >> https://wiki.php.net/rfc/third-party-code >>=20 >> *Puts on trusty flame-retardant suit* >>=20 >> --=20 >> Larry Garfield >> larry@garfieldtech.com >=20 > I remember a while ago a discussion about bundling composer with PHP b= y default (and possibly dropping pear). > What ever happened with that? > As the first thing any dev does after setting up PHP, is install compo= ser. As this RFC points out, almost every project modern uses composer t= o manage dependencies, and every Library, SDK and framework requires com= poser. > So i'd change this line in the RFC > > We should use it, we should document it, we should promote it. > To > > We should use it, we should document it, we should promote it, we sh= ould bundle it! > =20 > As I mentioned, it is basically a requirement nowadays to work in PHP = unless you are doing something custom that doesnt require any dependenci= es, but then, is that person planning to release it to the public? > I am of no opinion of weather php devs internally should use composer,= i have no skin in that game. But Documentation - Yes, Promotion - Yes, = but does it really need it? Bundle it - Yes! There is nothing stopping packagers from bundling composer. In fact, `in= stall-php-extensions` (https://github.com/mlocati/docker-php-extension-i= nstaller) can do it via `@composer`.=20 Debian packagers can recommend it via =E2=80=9Crecommends=E2=80=9D and I= believe the default settings will install it. The main issue is that composer is updated fairly regularly and most pac= kage maintainers don=E2=80=99t have the time to keep up with it.=20 =E2=80=94 Rob --d381ce535b084f71937e124edefd08e7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Thu, Oct 24, 2024, at 01:57, fennic log wrote:
<= br>
On Wed, 2 Oct 2024 at 19:37, Larry Garfield <larry@garfieldtech.com> wrote:
Since Jim's RFC proposal was criticized for being too vague, I her= eby offer a somewhat more prescriptive policy proposal on using 3rd part= y code.  (With JIm's blessing.)  It's still more heuristics th= an rules, but I think that's the right approach generally.  It also= includes a voting mechanism to resolve edge cases when they come up.

I'm sure we'll bikeshed it to death, but pl= ease keep an open mind about the concept in the first place.  PHP i= s more than just php-src, and that's a good thing.  We need to catc= h up with that reality, while at the same time maintaining a reasonable = neutrality about projects Internals doesn't manage directly.


*Puts on trusty flame-retard= ant suit*

--
  Larry= Garfield

I remember a while ago a discussion about bundling= composer with PHP by default (and possibly dropping pear).
What ever happened with that?
As the first thing any dev= does after setting up PHP, is install composer. As this RFC points out,= almost every project modern uses composer to manage dependencies, and e= very Library, SDK and framework requires composer.
So i'd = change this line in the RFC
> =0A We should use it= , we should document it, we should promote it.
To
> We should use it, we should document it, we should promote it= , we should bundle it!
 
As I men= tioned, it is basically a requirement nowadays to work in PHP unless you= are doing something custom that doesnt require any dependencies, but th= en, is that person planning to release it to the public?
I= am of no opinion of weather php devs internally should use composer, i = have no skin in that game. But Documentation - Yes, Promotion - Yes, but= does it really need it? Bundle it - Yes!

There is nothing stopping packagers from bundlin= g composer. In fact, `install-php-extensions` (https://github.com/mlocati/= docker-php-extension-installer) can do it via `@composer`. 
=

Debian packagers can recommend it via =E2=80=9C= recommends=E2=80=9D and I believe the default settings will install it.<= br>

The main issue is that composer is updated = fairly regularly and most package maintainers don=E2=80=99t have the tim= e to keep up with it. 

=E2=80=94 Rob
--d381ce535b084f71937e124edefd08e7--