Suche
Beiträge, die mit PHP getaggt sind
I fully expect #Laravel to start deprecating the `Attribute` cast starting with Laravel 13.x.
I have, quite literally, no argument to use Attribute casts over Property Hooks. Plus, because these are native, there is no overhead.
#PHP #Programming #WebDevelopment #Technology #Code #Coding #SoftwareDevelopment #WebDev #PHP84 #PHP8
I maintain some projects that are used in a variety of Linux distros. Last year I’ve tried releasing an update with PHP 8.0+ and I had to quickly get it to PHP 7.4 as well to support a decent chunk of users.
What would be a reasonable policy to drop support for older versions? Most users are running in shared hosting, and it’s extremely hard to get decent stats (I can’t know if I’m dealing with a big user base or just a loud minority).
Any tips?
#php
Some people hate PHP because it was their first language, they wrote a ton of bad code in it, learned better practices along the way as they switched to other languages, and then look back on their old code and blame the language.
#PHP
Learn how to optimize memory usage in your PHP app with simple fixes!
Check out Vincent Wong’s article on reclaiming memory from PHP arrays👇
urls.fr/9JsCsG
#PHP #MemoryManagement #WebDev #CodeOptimization #TechTips
Reclaiming Memory from PHP Arrays - Vincent Wong - Medium
Note: this article is written for PHP 8.3, but will likely still be applicable to other PHP versions. It is safe to assume that every PHP dev has worked with PHP arrays in the course of their…Vincent Wong (Medium)
I've just contributed to phpc.social. Consider supporting them too — every little helps!
opencollective.com/phpc-social
#fediverse #fedi #mastodon #PHP #mastoadmin mastodon.au/@Linux/11422440010…
A couple of years ago I wrote a #php script that mucks around with some system files. Because I didn't want to break my system while testing the code, I wrote some relatively tedious tests in #phpunit with mock objects, validating the parameters that were passed down to the filesystem.
It was a real pain in the butt, but I got the thing debugged without making a mess of my working environment.
Today I decided to add a new feature, and there's no way to express how much time having all that stuff set up saved. I copied a similar test, adapted it to the new feature, got it to pass tests, and deployed it without issue.
Coding a good test suite pays back over, and over, and over again.
Code libraries/tools that solve problems that shouldn't exist in the first place annoy me greatly. Mainly because the existence of these popular workarounds and hacks means the underlying problem just doesn't get fixed.
Stable, non-optimal equilibria suck.
F*ck Google.
I've created a new package for using Cloudflare Turnstile, which is unlimited free and less abrasive than reCAPTCHA, which is now paid:
Sponsoring is appreciated.
#PHP #Programming #CAPTCHA #reCAPTCHA #Google #Cloudflare #CloudflareTurnstile #Laravel #WebDevelopment #Enshitification #GoogleCloud #GCP #GoogleCloudPlatform #Software #SoftwareDevelopment #Coding #WebDev #Bots
GitHub - Laragear/Turnstile: Use Cloudflare's no-CAPTCHA alternative in your Laravel application.
Use Cloudflare's no-CAPTCHA alternative in your Laravel application. - Laragear/TurnstileGitHub
"Extensions are now very close to being like packages; they basically look like Composer packages. It’s still open to discussion whether PIE will be part of Composer someday."
That would be MASSIVE.
Having Composer orchestrate the whole ecosystem from extensions to packages would be a great step forward.
source: medium.com/accesto/insights-fr…
Insights from the PHP Foundation Executive Director
I recently interviewed Roman Pronskiy, who works at JetBrains as the Executive Director of the PHP Foundation and has been a PHP dev since 2010. In this interview, Roman shared his insights and…Michał Kurzeja (Accesto)
Dmitry Stogov is leaving @zend in two weeks and is looking for other opportunities. He's the driving force behind the JIT implementation in PHP (both the original one in 8.0 and the new one in 8.4), among many other features, bug fixes, and security patches too numerous to mention.
If PHP (and especially JIT for PHP) are important to your business, you should reach out and talk with him.
news-web.php.net/php.internals…
#PHP
Hi, #Today I decided to try to #getfedihired — I've got many years of experience with web development, programming and production (#HTML, #CSS, #Javascript), I can make myself useful in anything on the open-source side of back end, i.e. the #Perl, #Python, #PHP, #MySQL, #Linux kind of area.
I live in #Sydney Australia and would be happy to work in-office, remote or hybrid.
Let me know of any opportunities, or pass this on to anyone else who might know of something? Thanks.
#SmallWeb #webdev #php
Flow #PHP Website will no longer display Google Ads and the cookies were reduced to just analytics (only page views).
It was a failed experiment, only more frustrating to the users, not even generating enough income for to get me a coffee once a month 😂
You want a crazy idea? Add an "__outScope" built-in method for classes.
It will run when the scope of the variable that holds the class instance ends.
Imagine the possibilities.
#PHP #Programming #Software #SoftwareDevelopment #WebDevelopment #WebDev #ApplicationDevelopment #AppDevelopment #Coding #Code
How can anyone be as wholesome and wonderful as Ryan Weaver? One of the best human beings I've ever met.
Hey, folks! I’m looking for a Staff Software Engineer to join my team (API Core) at #Mailchimp.
Some of the things we work on: #PHP, #REST, #OpenAPI, #OAuth2, #APIGovernance, and more.
We are stewards of our public #APIs, and we collaborate with other capabilities teams to ensure APIs are developed according to our standards and processes. You would work directly with me on a daily basis.
This position is in Atlanta or New York.
jobs.intuit.com/job/atlanta/st…
Staff Software Engineer (API Core Team) at Intuit
Learn more about applying for Staff Software Engineer (API Core Team) at IntuitSoftware Engineering Careers at Intuit
Exciting changes ahead for the Flow #PHP Project!
Starting today, get ready for fresh releases every two weeks 🚀
Of course, we'll swiftly tackle any critical bugs or security issues.
Dive into the details here: flow-php.com/blog/2025-03-16/f…
Article - Flow PHP Release Cycle
Explanation of the updated Flow PHP release cycle that improves adaptability of new features.flow-php.com
I am pleased to announce that my latest project is now ready for public alpha! Feedback welcome. Please try it out and let me know how it goes.
Mildly Dynamic sites are back.
garfieldtech.com/blog/midy-alp…
#PHP #MiDy #MildlyDynamic
Advanced PHPUnit Data Provider shenanigans. #PHP
Part 1: peakd.com/hive-168588/@crell/f…
Part 2: peakd.com/hive-168588/@crell/a…
Advanced PHPUnit shenanigans | PeakD
Make your PHPUnit data providers even more powerful.... by crellPeakD
#TIL you can call an object like a function in #PHP.
todayilearned.net/2025/03/call…
Call an object like a function in PHP using invoke | Today I Learned
In PHP, you can "call" an object like a function. The class just needs to implement the __invoke magic method.Camilo Bravo (todayilearned.net)