Schrank, to php
@Schrank@phpc.social avatar

I have a cli script which looks like this:
->run($argv[1], $argv[2]);

the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into

run(): Argument #2 ($path) must be of type string, null given

Or do I need to test this and have two different calls?

derickr, to php
@derickr@phpc.social avatar

It's PHP's birthday! 29, years old today.

A cake cut out a slice off, and the big side taken.

kubikpixel, to php
@kubikpixel@chaos.social avatar

I still need to take a closer look at the toots of @shadowserver but it seems to be an other argument against and on Windows to the boss and customers… 🙄

»[…] A critical vulnerability in the PHP language can be trivially exploited to execute malicious on devices, security researchers warned as they urged those affected to take action before the weekend starts. […]«
– on @arstechnica

⚠️ https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/

Skoop, to php
@Skoop@phpc.social avatar

I wrote something about making the choice between upgrading or upgrading: https://skoop.dev/blog/2024/06/07/upgrade_or_upgrade/

ramsey, to php
@ramsey@phpc.social avatar

It boils my blood to hear folks insinuate that is the source of their performance problems and they should switch to microservices in another language to fix the performance issues. Maybe spend a little bit of time figuring out where your bottlenecks are and fix those, first!

(This may or may not be a sub-toot.)

ramsey, to php
@ramsey@phpc.social avatar

What’s the difference between memory usage and peak memory usage?

(As in 's memory_get_usage() and memory_get_peak_usage() functions.)

derickr, to php
@derickr@phpc.social avatar

@SecondeJ kicking off tonight's PHP London meeting.

sarah, to php
@sarah@phpc.social avatar

Here are my top 5 favorite Composer packages in #php (in no particular order):

  1. mezzio/*
  2. psr/*
  3. monolog/monolog
  4. league/flysystem
  5. symfony/console

There are many others I love but I find myself using these on most if not all projects.

sarah, to php
@sarah@phpc.social avatar

I have used for over twenty years. I know it’s power and I’ve seen it mature as a first class language.

Haters will hate. But PHP is one of the most powerful and versatile languages in the world.

From CLI to web and everything in between, PHP can do it. You can and should feel good about choosing PHP for your project.

SuitedUpDev, to php
@SuitedUpDev@mastodon.online avatar

A quick question to my fellow developers here. Does anybody have a suggestion for Spider / crawler library in PHP?

mobileatom, to php
@mobileatom@flipboard.com avatar

Understanding continuous profiling: part 2.

https://www.blackfire.io/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

mobileatom, to php
@mobileatom@flipboard.com avatar
vwbusguy, to Kubernetes
@vwbusguy@mastodon.online avatar

I feel like largely tamed for webapps but remains a greedy and fickle yet necessary beast for .

sarah, to php
@sarah@phpc.social avatar

I'm offering a FREE copy of my book, Mastering Object-Oriented PHP, to all members of the community. It's my way of giving back. Grab your copy at https://masteringobjectorientedphp.com today.

ShopwareDevs, to Symfony
@ShopwareDevs@phpc.social avatar

Yesterday, we released v6.6.3.0. This release includes DAL entities with attributes, UI components now available in admin panel, support of LTS 8.4 and much more. Release notes: https://developer.shopware.com/release-notes/6.6/6.6.3.0.html

Crell, to php
@Crell@phpc.social avatar

I've just tagged a new release of Crell/Serde, version 1.2.

This release includes support for Unix timestamps, makes TypeFields more flexible and customizable, and fixes an issue with handling null values. Note that the latter fix has a very small BC break that only impacts a select number of custom Importers, so odds are you won't notice.

Get it while it's hot!

https://github.com/Crell/Serde

Symfony Station Communiqué - 07 June 2024 | Symfony Station (symfonystation.mobileatom.net)

Welcome to this week's Symfony Station communiqué. It's your review of the essential news in the Symfony and PHP development communities focusing on protecting democracy. That necessitates an opinionated Butlerian jihad against big tech as well as evangelizing for open-source and the Fediverse. We also cover the cybersecurity...

doefom, to Laravel
@doefom@mastodon.social avatar

Another cool feature of the #Laravel 'Number' helper is the abbreviation function. Especially useful for dashboards and stuff.

#php #webdev

ampache, to php
@ampache@fosstodon.org avatar

6.5.0 is a big update that updates the Browse&Query classes into smaller pieces.

This work helped find and close a lot of issues which you can easily miss in 5k line classes.

Work moves on to Ampache7!

https://github.com/ampache/ampache/releases/tag/6.5.0

majorlinux, to php
@majorlinux@toot.majorshouse.com avatar

Hope your weekends are still uneventful.

Nasty bug with very simple exploit hits PHP just in time for the weekend

https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/

matdevdug, to php
@matdevdug@c.im avatar

May god have mercy on the souls of those sad people running on and who now have a serious CVE. https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/

Crell, to php
@Crell@phpc.social avatar

And yet again, using Docker (via Lando) plus XDebug + PHPStorm = things just don't bloody work, despite all the settings being correct.

I really wish this were not such a regular occurrence. I don't even know which tool to blame.

doefom, to Laravel
@doefom@mastodon.social avatar

"Blueprint" generates code for your app. Create draft.yaml, define what to generate, package handles the boilerplate stuff for you. This example generates a controller, factory, migration, model and test. Very neat to begin a project with.

mobileatom, to php
@mobileatom@flipboard.com avatar
mobileatom, to php
@mobileatom@flipboard.com avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • Durango
  • ethstaker
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • Leos
  • osvaldo12
  • tacticalgear
  • cubers
  • cisconetworking
  • anitta
  • provamag3
  • modclub
  • mdbf
  • GTA5RPClips
  • tester
  • megavids
  • normalnudes
  • lostlight
  • All magazines