cspray, to php
@cspray@phpc.social avatar

I found myself needing to write tests for code that throw an exception with domain-specific information. I actually need access to the exception thrown in my test. So, I created a testing utility that will do just that.

https://github.com/cspray/assert-throws

phpdoc, to php
@phpdoc@phpc.social avatar

phpDocumentor 3.5 is here! With better Guides support and now fully functional RST! Automatic generated class diagrams by querying your code base and much more!

Let us know what you like in this new release!

https://github.com/phpDocumentor/phpDocumentor/releases/tag/v3.5.0

mmoya, to php

A filter to prepend Hello world! to /etc/passwd, source https://www.ambionics.io/blog/iconv-cve-2024-2961-p1

carbontwelve, to php
@carbontwelve@notacult.social avatar

Ooh look is getting some more JavaScript array functions https://laravel-news.com/php-8-4-array-find-functions

Natanox, to webdev
@Natanox@chaos.social avatar

I probably get flooded by asking this but welp, here I go:

I'm looking for a good, visual (!) #tutorial for #WebDevelopment that focuses on Codium, Firefox and other Open-Source tools. My specific interests are to learn #HTML, #CSS, #PHP and #SQL. Perhaps some minor #Javascript, however I'd like to primarily work without it.

I'm a visual learner, extended theory in text won't help me at all. As language is visual to me, so is #programming.

Anyone knows something that checks these boxes?

dseguy, to php French
@dseguy@phpc.social avatar

foreach() works on arrays and objects. On objects, it skips uninitialized properties, which may be very convenient with readonly properties : otherwise, it is a fatal error!

https://php-tips.readthedocs.io/en/latest/tips/foreach_skips_uninitialized.html

mobileatom, to php
@mobileatom@flipboard.com avatar

Fix Your Code With The Debug Backtrace.

https://alexwebdevelop.activehosted.com/social/58238e9ae2dd305d79c2ebc8c1883422.354?utm_source=flipboard&utm_medium=activitypub

Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the

thomastospace, to php
@thomastospace@phpc.social avatar

Making PDF's in makes me cry.

Edent, to php
@Edent@mastodon.social avatar

🆕 blog! “Rewriting OpenBenches in Symfony”

I once described my ideal coding environment to a colleague as "telneting directly into prod and damn the consequences!" I jest. But only a little. When I build for myself I treat best practices and coding styles as harmful. Chaotic evil but, hey, it's only myself I'm hurting. Anyway, my wife and I run a […]

👀 Read more: https://shkspr.mobi/blog/2023/05/rewriting-openbenches-in-symfony/

#OpenBenches #php #Symfony

ramsey, to random
@ramsey@phpc.social avatar

Thanks to kochen and jankal on GitHub (don’t think either are here in the Fediverse), there’s a new version of ramsey/uuid-doctrine (v2.1.0), with support for doctrine/dbal v4 and binary types in PostgreSQL. 🎉🎊🥳

#PHP #UUID #Doctrine

https://github.com/ramsey/uuid-doctrine

dseguy, to php French
@dseguy@phpc.social avatar

question of the day : when you know that
2*2 = 4
2^2 = 4 (too)
2.5^2.5 = 9.8821176880262..

Where is this 6 coming from ?

phpugmrn, to php German
@phpugmrn@phpc.social avatar

Have you ever wondered how to compile a #PHP application into a single binary? Join us on February 29th at the @bitexpert office in #Mannheim to find out! @Hariboas will introduce us to #FrankenPHP and its impressive capabilities. Sign up here: https://www.meetup.com/phpug-rhein-neckar/events/298184699/ #phpugmrn #phpc #rheinneckarrocks

martijn, to fediverse
@martijn@ieji.de avatar

Writing the most basic implementation in that is compatible with shared hosting. I've seen some other great projects, but I needed a "call this function with a simple message" functionality for some existing websites

ollieread, to php
@ollieread@phpc.social avatar

So, I’m building a dependency-injection package, and it’s a lot of fun. I’ve gone a route that I don’t really see many, if any, following. I suspect it may be that a lot of the solutions out there are old, and while they have been updated, they’re still going to inherit certain approaches.

html5test, to random
@html5test@mastodon.social avatar

I just ran into an UUIDv4 collision. Two identical UUIDs generated, just two days apart. Lucky me.

ramsey,
@ramsey@phpc.social avatar

@html5test @jimw This can happen if the underlying random number generator forks and reuses the same process state. This happened with OpenSSL years back, and became a big issue for a library I maintain in .

Here's a link to a summary of the problem: https://github.com/ramsey/uuid/issues/80#issuecomment-188286637

linuxiac, to linux
@linuxiac@mastodon.social avatar

Learn how to install the LEMP stack on Ubuntu 24.04 LTS with our step-by-step guide. Nginx, MariaDB, and PHP setup made simple.
https://linuxiac.com/how-to-install-lemp-stack-on-ubuntu-24-04-lts/

phpc, to php
@phpc@phpc.social avatar

WHAT IS HAPPENING, MY PHPEOPLE!

theseer, to random
@theseer@phpc.social avatar

Is it just me or is getting worse by the day?

I'm runnig 2024.1 (Build -241.14494.237, built on March 27, 2024) but have to constantly restart the IDE to fix bizarre errors like PHPStorm claiming a property or parameter isn't used while highlighting the very use a line later, inconsistently resolving asserts with instanceof checks - e.g. claiming a method doesn't exist in the class referenced in a different assert and not seeing a parameter that is clearly there...

PHPStorm claiming a parameter is missing that is clearly there..

michael,
@michael@thms.uk avatar

@zf2timo tried that. Still having the same issues 😩 @theseer

#php #PhpStorm

leanpub, to php
@leanpub@mastodon.social avatar

Advanced Web Application Architecture https://leanpub.com/web-application-architecture by Matthias Noback is the featured book on the Leanpub homepage! https://leanpub.com

michael, to Laravel
@michael@thms.uk avatar

So, it really annoyed me that in Laravel 11 you cannot have multiple listeners for the same event in an array like you could in Laravel 10.

It's not like it's a big deal, as it's simple enough to implement, but just seems like a step backwards.

What do you think?

https://blog.thms.uk/2024/05/event-listeners-laravel-11?utm_source=mastodon

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
mobileatom, to Symfony
@mobileatom@flipboard.com avatar
mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore today's @SymfonyStation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://symfonystation.mobileatom.net/Symfony-Station-Communique-24-May-2024 🇺🇦

ddd, to drupal
@ddd@drupal.community avatar

Excited to welcome Erik Erskine to 🥳

The session by Erik Erskine at is aimed at developers getting started with testing!

🔗 Learn more about the session at https://ddd2024.drupalcamp.bg/drupal-dev-days-2024/session/retrofitting-tests-existing-project

pwaring, to php
@pwaring@fosstodon.org avatar

Finished client work for the week so spending a bit of time on side projects. Just closed two outstanding issues on my repository for bootstrapping PHP applications using the Slim framework, bringing the total down to zero.

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