16 Jan 2021

feedPlanet PHP

16 Jan 2021 4:07am GMT

12 Jan 2021

feedPlanet PHP

Xdebug Update: December 2020

Xdebug Update: December 2020

London, UK
Tuesday, January 12th 2021, 09:08 GMT

Another monthly update where I explain what happened with Xdebug development in this past month. These will be published on the first Tuesday after the 5th of each month.

Patreon and GitHub supporters will get it earlier, on the first of each month.

You can become a patron or support me through GitHub Sponsors. I am currently 82% towards my $1,000 per month goal. If you're already supporting Xdebug's development, could you do me a favour and tweet this out?

Using @xdebug? Help its developer @derickr to get to 100% on his GitHub sponsors goal: https://github.com/sponsors/derickr #Xdebug3

If you are leading a team or company, then it is also possible to support Xdebug through a subscription.

In December, I worked on Xdebug for about 46 hours, with funding being around 30 hours. I worked mostly on the following things:

Releases

A few bugs were found in Xdebug 3.0.0, which should not come as a surprise, as with any big .0 release, users always find things that go wrong. December saw the 3.0.1 release, and the 3.0.2 released followed in the new year.

Xdebug 3.0.1 fixed several crashes and other bugs that are present in Xdebug 3.0.0. The crash when removing a breakpoint (or run-to-cursor) was the most notable fix in this release.

You'll have to wait for the January 2021 wrap up to find out about the 3.0.2 release, or you can have a look at the release announcement.

There are also new release of PhpStorm and the VS Code Plugin to address a few Xdebug related issues from their sides. On top of that, the GitHub repository of the VS Code Plugin has been moved to the Xdebug organisation. There is a back log of pull requests and issues that need looking at.

Videos

I have started making videos to introduce Xdebug 3 and how to use it. The first one on Xdebug 3's modes can be watched on YouTube.

I am currently working on a video to explain all the new features in Xdebug that help you find problems with running Xdebug itself.

Xdebug Cloud

I have been continuing to test Xdebug Cloud, and I am working with a few private alpha testers. They're putting the hosted Cloud service through its paces.

At the same time I am working with a designer to make the https://cloud.xdebug.com look pretty too.

If you want to be kept up to date with Xdebug Cloud, please sign up to the mailinglist, which I will use to send out an update not more than once a month.

Business Supporter Scheme and Funding

In December, no new supporters signed up, but I would like to thank Automattic, CHECK24, e3N, Edmonds Commerce, Find My Electric, Intracto, JetBrains, Private Packagist, Seravo, Strategery, Supermetrics, TYPO3 GmbH, and Tideways for their support during 20

Truncated by Planet PHP, read more at the original (another 629 bytes)

12 Jan 2021 9:08am GMT

10 Jan 2021

feedPlanet PHP

Object properties, part 2: Examples

Object properties, part 2: Examples

In my last post, I went over some of the pros and cons of various proposals for making PHP objects more immutable-ish, and the contexts in which they would be useful. I also posted the link to the PHP Internals list, where it generated some interesting if meandering discussion (as is par for the course on Internals).

One of the requests was for sample code to demonstrate why I felt particular feature proposals were better than others. Fair enough! This post is in response to that request, and I think it will help illuminate the challenges better.

For this exercise, I chose to experiment with a junior version of the PSR-7 request object as a concrete example. The code below is not exactly PSR-7; it's a representative sample of portions of a naive, slightly reduced scope version of PSR-7 requests only, and using all PHP 8.0 features available. The goal is not a complete working object, but sufficient real-world representative examples of situations that an immutability plan would need to address.

Continue reading this post on PeakD.

Larry 9 January 2021 - 6:33pm

10 Jan 2021 12:33am GMT

06 Jan 2021

feedPlanet PHP

Free ticket to The Online PHP Conference!

I'm very happy to be speaking at The Online PHP Conference this year. As you can guess from the title, this is an online event so is easily accessible right from your desk. thePHP.cc have very kindly made available a couple of tickets to me, so you could attend for free.

06 Jan 2021 11:47am GMT

04 Jan 2021

feedPlanet PHP

Scaling PHP FPM based on utilization demand on Kubernetes

04 Jan 2021 12:00am GMT

28 Dec 2020

feedPlanet PHP

Object properties and immutability

Object properties and immutability

There has been much discussion in recent weeks in PHP circles about how to make objects more immutable. There have been a number of proposals made either formally or informally that relate to object property access, all aimed at making objects safer through restricting write access in some way.

Since my last mega post on PHP object ergonomics was so well-received and successful (it resulted in both constructor promotion and named arguments being added to PHP 8.0, thanks Nikita!), I figure I'll offer another summary of the problem space in the hopes of a deeper analysis suggesting a unified way forward.

Continue reading on PeakD

Larry 28 December 2020 - 5:30pm

28 Dec 2020 11:30pm GMT

08 Dec 2020

feedPlanet PHP

Xdebug Update: November 2020

Xdebug Update: November 2020

London, UK
Tuesday, December 8th 2020, 09:03 GMT

Another monthly update where I explain what happened with Xdebug development in this past month. These will be published on the first Tuesday after the 5th of each month.

Patreon and GitHub supporters will get it earlier, on the first of each month.

I am currently looking for more funding, especially now some companies have dropped out, and that GitHub sponsors is no longer matching supporters.

You can become a patron or support me through GitHub Sponsors. I am currently 73% towards my $1,000 per month goal.

If you are leading a team or company, then it is also possible to support Xdebug through a subscription.

In November, I worked on Xdebug for about 72 hours, with funding being around 30 hours. I worked mostly on the following things:

Xdebug 3

The biggest thing this month is the release of Xdebug 3!

After about a year and a half after starting with this massive undertaking, it is finally ready. I released it the day before PHP 8 came out. Of course Xdebug 3 also supports PHP 8. It however drops support for PHP 7.1 as per the support policy.

As is custom with a x.0.0 release, a few bugs did occur. I am currently working at addressing then. I plan to release bug release versions weekly throughout December, as long as it makes sense to do so.

Xdebug 3 should be a lot faster, as it is a lot more clever on when it hooks into things it needs to do. That does come with changes as to how Xdebug needs to be configured. Xdebug 3's upgrade guide lists all the changes.

The https://xdebug.org web site now only contains Xdebug 3 documentation, with the old site archived at https://2.xdebug.org until the end of 2021.

I will be recording some videos about the ideas behind the changes, and how to use Xdebug 3. I am also playing with the idea of hosting "Office Hours" for an hour a week where users can drop-in with questions and problems. If that is something that you're interested in, please let me know.

Xdebug Cloud

I have been continuing to test Xdebug Cloud, and I am working with a few private alpha testers. They're putting the hosted Cloud service to its paces with the latest PhpStorm 2020.3 release candidate. As I suspected, the alpha testers found some minor issues which I will be addressing during December.

The web site for Xdebug Cloud does not have a design yet, but this is coming this month as well.

If you want to be kept up to date with Xdebug Cloud, please sign up to the mailinglist, which I will use to send out an update not more than once a month.

Business Supporter Scheme and Funding

In November, two new supporters signed up.

Thank you Find My Electric and Edmonds Commerce!

If you, or your company, would also like to support Xdebug, head over to the support page!

Besides business support, I also maintain a Patreon page and a profile on GitHub sponsors.

Become a Patron!

08 Dec 2020 9:03am GMT

04 Dec 2020

feedPlanet PHP

Development-Mode Modules for Mezzio

04 Dec 2020 1:30pm GMT

30 Nov 2020

feedPlanet PHP

Install PHP 8.0 on CentOS, RHEL or Fedora

30 Nov 2020 2:10pm GMT

29 Nov 2020

feedPlanet PHP

29 Nov 2020 9:30pm GMT