Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120347 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22644 invoked from network); 18 May 2023 17:35:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 May 2023 17:35:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3B092180503 for ; Thu, 18 May 2023 10:35:07 -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=-0.7 required=5.0 tests=BAYES_05,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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 18 May 2023 10:35:06 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so2263978f8f.2 for ; Thu, 18 May 2023 10:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684431305; x=1687023305; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=kK4mffgmTG+EOi9L0naEHyrpPeSM0+3CFaijg69J3mY=; b=OhcsTl/KecGwQyItDs2XYWYeNZG3Ue3Nf87aJVrGdzXp4i7UN/+a17mUC3/CPxfPIC 3InJB/pYZInzPoTk+pw5OoVfP6EFP5Va7FpVTEZSNpdOErAzbM3nOH3eitwVwXMLvNkB rIyZy8Mbu9XGDq+0Ub1AUjR0Y9tWCRE/e6kG7R7Hki4zk8HKSedYtkg7hq2rN3+QnCfJ ukyOn7EumV3cYsKmz9fV3QNe6wD9KRe+73jXYcgVvRtMvfXlyhAbhxBjeE6aVpmPOMZP ZWXsLPCJ+m7781QPbbOe/aaYS6w7jbBiGXEIcGcnauQqU1cJJ4u30SIiYD7o/uJkLCtG WTIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684431305; x=1687023305; h=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=kK4mffgmTG+EOi9L0naEHyrpPeSM0+3CFaijg69J3mY=; b=DtN+g8SFQIvnqYNtbdNqUtGAJ+U1fEJdujjcZzPGj95wPk2Cf7nA/CP+iXdbzrpFnh jwvWUF79bBu5yeIcU1RehorsMwRzxEqDM3w2EuhJUHIGfbwZqm2SnwPKCHNjsq6lCWEo 06SrgPEJVpUpFXWczl4kZdt5cDFQKouE4YQcEFmucINWzKsaEEbotfkH37OzGav8TS50 tI0cfWD2GD+VPTvqZRycKQ+WpXLcXTvKL/N5x7d+3qE+rKkRxftZPZ600tC0zVGjnk0K 0tCF97bKRNTS1r09LKSVElf1Tt5TfyyCFaDemP5qKZUqp1O3CdZWPyCxX6CyFxEl8nSe X9Kg== X-Gm-Message-State: AC+VfDyVPLmIfHXZuLibJrHXsaLVN+j/YH3tWW3fC98gizQy22KtJ6Cj JFRMDCf9NBHrn+ih2LEajysbNPALBX1ytJXVzW3kY3Na X-Google-Smtp-Source: ACHHUZ5EgZjMeJiFqF8SgzMxvzAs5U82MVu6zMuk8CAbI8rvkI4FBISdB4yCPzJhTABIyYZiYvWrNh5wLfYIvOPDnE8= X-Received: by 2002:a5d:55c6:0:b0:309:3b27:9baa with SMTP id i6-20020a5d55c6000000b003093b279baamr2255010wrw.52.1684431305328; Thu, 18 May 2023 10:35:05 -0700 (PDT) MIME-Version: 1.0 References: <000201d9897f$aa9f9fa0$ffdedee0$@roze.lv> In-Reply-To: Date: Thu, 18 May 2023 18:34:52 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000009a4bfa05fbfb393a" Subject: Re: [PHP-DEV] PHP Package for PHP From: rowan.collins@gmail.com (Rowan Tommins) --0000000000009a4bfa05fbfb393a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 18 May 2023 at 16:27, Deleu wrote: Monolog is a great example of what PHP is missing - a single library for a > purpose. I have never worked with any other library besides Monolog and I > never worked on any project which didn't have it installed. Perhaps my > bubble might be a limiting factor here, but I get a feeling that Monolog = is > considered to be The Logging PHP Library. > Then in what sense is it "missing"? What value would be served by placing an elephant logo on it, and renaming it "PHPLog=E2=84=A2"? I know that's a bit of a sarcastic response, but it's also a serious one - what would we define as the aims of a replacement for Monolog, which aren't currently being served? We could guarantee it was installed with every version of PHP, but only by severely restricting its release cycle, so that every PHP version had exactly one version of Monolog. If it remains an independently versioned Composer package, I can't think of much that would change. > Laravel's `Arr` class also didn't get scrutinized by PHP RFC so there's n= o > way to know whether it's all good, some good or all bad. > I don't think PHP's decision-making process can be held up as a shining example of good governance, in contrast to everyone else's anarchy. I don't know much about Laravel's governance, but I am quite sure every change is discussed and iterated on before release. In fact, they probably have a whole bunch of standards and processes that PHP is lacking, and would have to invent to make any new library a success. > ... it takes away all the time and energy collectively spent in evaluatin= g > options and their reputations. > I don't think that's really true; reputations have to be earned, and maintained. Taking the logging example, imagine we decided that, to paraphrase Dr Strangelove, "We can't allow a logging gap!" So we hack together a logging package that's worse in every way than Monolog, but call it "official". Half the community will ignore it and carry on using Monolog; the other half won't realise that a better alternative exists, and be worse off from today. I actually wonder if some things in core should be removed to encourage userland replacements - ext/soap, for instance, and some of the data structures in ext/spl. IMHO, the things that would benefit from being written in PHP then bundled are things that are so low-level that it's hard to get them wrong; the building blocks that the community will use to build things like Monolog and Guzzle. Regards, --=20 Rowan Tommins [IMSoP] --0000000000009a4bfa05fbfb393a--