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

sarah, to php
@sarah@phpc.social avatar

The language is incredibly powerful. It’s great for many things. But not everything.

I wouldn’t write a web server in PHP and deploy it to production.

But the fact that I could makes the language incredibly powerful.

donatj, to php
@donatj@mastodon.social avatar

In it would be nice if UnhandledMatchError contained the unmatched item.

selwynpolit, to drupal

I’m starting a new job on Monday and I’ve had lots of time to update my free online book: Drupal at your Fingertips. Please share it with your network. https://selwynpolit.github.io/d9book/ #DrupalBook #Drupal #PHP #Development #Drush #DDEV

flavioheleno, to php
@flavioheleno@phpc.social avatar

would you like to run your for all available Releases but forgets to update it whenever new versions are available? Try my latest action to improve your build matrix: https://github.com/flavioheleno/php-active-releases-action

Girgias, to php
@Girgias@phpc.social avatar

Welcome, my name is Gina, my profession #PHP Engine Janitor, finding obscure bugs while cleaning up code and creating new and better engine APIs.

wyri, to php
@wyri@haxim.us avatar

Wrote a fancy one-liner because I didn't want to toss in the mix and go all in on . Actions response to it: 🖕 🖕 🖕

The first image is the full one liner, but it already 💩 out on the right image

Image of the following code: echo "${$(cat ${{ inputs.dockerfile }} | grep FROM | tail -n 1)}"

mobileatom, to php
@mobileatom@flipboard.com avatar

Of Tools and Dependencies. #PHP

https://andreas.heigl.org/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

scoonch, to photoshop French
@scoonch@mamot.fr avatar

Dev Web fullstack, après un enchaînement de CDD, je suis libre à partir d'aujourd'hui.

CDI distanciel de préférence sinon je m'adapte, je suis à Paris.

Compétences en +:
Maquettiste #Photoshop #Illustrator,
Monteur vidéo #Premiere #Avid,
Habillage/Animation #AfterEffect
Régie/Vidging/Mapping: #Obs #Resolume #Millumin

CV en mp.

#HTML
#CSS
#PHP
#JS
#jQuery
#Scss
#Symfony
#React
#NextJs
#ViteJs
#Bootstrap
#Tailwind
#Stripe
#dataTables
#Wordpress
#Prestashop
#Sylius
#MongoDb
#Mariadb

sarah, to php
@sarah@phpc.social avatar

What is your favorite composer package in #php?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • anitta
  • ethstaker
  • GTA5RPClips
  • modclub
  • tester
  • provamag3
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • megavids
  • Leos
  • lostlight
  • All magazines