Php features: type hinting (dev.to)
Attributes First class callable syntax Constructor changes Parameter changes This post is going to...
sarah, Are you a PHP developer looking for a job? Make sure you check out my project, https://phpforhire.com which is in beta, and will allow you to post a profile of yourself that will be searchable online. #php #hiring #fedihired #fedihiring
Attributes First class callable syntax Constructor changes Parameter changes This post is going to...
array, My first #PHP was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack #Laravel mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore
oliver,
oliver, @zimzat yeah, on the surface level things seem to be attractive, but as you go further and deeper, facepalms emerge. Some dbal & a custom data mapper will probably be the start.
I use Doctrine on my day-to-day work, and have used Eloquent before. Eloquent I liked up to some point, but can't say that for Doctrine. I wish I had more time to build something like Eloquent but with less magic and bloat (simple to use but not trying to do everything imaginable)
thgs, @oliver I mean.. the way you put it, the data mapper is only convenience probably. I think valinor supports stuff like nested levels that ocramius/GeneratedHydrator doesn't for example. Not sure 100% for either.
Personally, I would not consider writing my own data mapper, just for the sake of not losing time with the project.
Recently, I favour the notion of "first version is probably throw-away code" and just try to make it work. It all depends on what level you design things, I guess..
ramsey, How does one use PHPUnit 10 or 11 with Symfony 7? The PHPUnit Bridge includes instructions that will only work for PHPUnit 9.
https://symfony.com/doc/current/components/phpunit_bridge.html
cpereira,
ramsey, @cpereira That says they’ll probably jump directly to PHPUnit 11 and skip 10, which is fine with me.
nyamsprod, Coming soon in the next minor release of League\Csv 😍
still ironing the feature that you can already test on the master branch. give it a try #csv #php
https://csv.thephpleague.com/9.0/reader/statement/#where-clauses
nyamsprod, @derflocki there are a couple reasons why I do not use SQLite. First the package needs no dependencies, two, the feature was already present in the package like 7 years ago I only updated the UX around it and last but not least I seldom encounter CSV that adheres fully to the draft/informal RDC. Hence using the SQLite extension would not solve CSV parsing in real world IMHO.
derflocki, @nyamsprod Thanks for the explanation!
eliashaeussler, German I just released new versions for EXT:warming, EXT:sitemap_locator and EXT:sitemap_robots 🥳
All new versions are compatibility releases for #TYPO3 v13.1 – The Surfer's Starterkit.
Happy updating! 🚀
sarah, What do you use for offsite backups for #php applications and databases?
willpower232, @mwop oh that's clever, I keep forgetting about fuse, are you using this one? https://github.com/s3fs-fuse/s3fs-fuse?tab=readme-ov-file
mwop, @willpower232 Yes, within a container, via elementary/s3-volume (https://github.com/elementar/docker-s3-volume).
francesco, Italian Non riesco a configurare il server integrato di eclipse PHP su ubuntu based. Quando aggiungo un modulo e ne faccio il publish non viene copiato tutto il contenuto nella tmp del plugin, non permettendomi di testare gli script. Viene copiata solo la cartella di root del modulo, ma resta vuota. Non capisco dove sbaglio.
Crell, Null is problematic, but why? Let's see why, and let that guide us to new alternatives. #PHP
sirber, I forgot how fun it is to develop with #php. It's sad that most of the jobs with it are WordPress related 😒
maxalmonte14,
Crell, @maxalmonte14 @sirber It's honestly the most boring modern language. Java with less crappy syntax. There's some bits of it that are weird, but otherwise it's just kinda... Fine? Not exciting or interesting, just... Fine.
For many developers, PHP is synonymous with web development. But what if you could leverage your...
pieceofthepie,
pieceofthepie, @heiglandreas "Those aren't dependencies of your application. Just tools..."
Fair, but also, if I remove development dependencies from the my projects if they're just tools then those projects no longer have development dependencies.
Which I guess leads me to "what are development dependencies for if not things needed for development?"
heiglandreas, @pieceofthepie Exactly. Only for development. Your code also earns money without them.
But by adding them to the dev-dependencies you are tying the code that earns money to the tools you only need for development.
By using separate composer.jsons (or PHARs) you can use the tools without tying your code to them and their dependencies.
typo3, German From the small to the mighty, #TYPO3 developers are all part of a bigger story. 🧡
We're expressing appreciation for all the developers who contributed to the #TYPO3 project in the last month, and presenting April’s most important names and some numbers: https://typo3.com/blog/april-2024-developer-appreciation-day-dad
ampache, #ampache 6.4.0 out now!
This is a great release to move to. Numerous fixes and weird bugs squashed.
The 6 branches are winding up development but API6 will continue to be extended when development has moved to Ampache 7.
dogmazic, @ampache
Updated !
It's faster for us ! :)
Thanks !
ampache, @dogmazic that's great. We're starting to diverge between 6 and 7 now so really only api extension and bug fixes from now on
...and how to avoid it. Type coverage is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %. Once we reach high coverage of 80-90 %, we feel safer. But our code can actually be in worse, even dangerous,...
danielsiepmann, I'll share this with #php and #documentation in order to allow other members of the communities to find this post :)
♲ phpc.social/
typo3, German Welcome to the #TYPO3PartnerProgram, Wolfgang Wagner! 🧡
He's been working with #TYPO3 since 2005, and his TYPO3 #Masterclass has helped over 1,250 course participants sharpen their skills. 🚀
Learn more: https://wwagner.net/12
ollieread, I need to remember that Mastodon exists! I’m currently writing a bunch of content to do with PHP and this would be the perfect place to talk about that.
I’m currently trying to decide whether #php #reflection is an interesting enough topic that people may like an in-depth course/series on it. It seems to be something a lot of people are vaguely aware of, but don’t really know the details.
ollieread, I’ve also been trying to put together some content that’s more beginner friendly, by researching frequently searched queries on Google.
These are the ones I have so far.
ollieread, In fact, this is my first draft of the article on covariance and contravariance as concepts but also related to #php.
I've tried to go for simple, without too many details, but I think this contains the fewest number of details I'm capable of writing 😂
https://gist.github.com/ollieread/273cf344503533ee4c497ab4c62929bf
sirber, I started a prototype of a framework-less #php architecture, using #docker, on my playground. Separated public and private files, enabled autoloading using composer and PSR-4. It's fun! 😀
https://gitlab.com/sirber/playground/-/tree/main/php/pure?ref_type=heads
Crell, @sirber Isn't that the same as a custom framework? :-)
nosherwan, @sirber You need a frame.work laptop for a custom framework.
koehnlein,
Xitnelat, Multilined html-tag is worth a change either. @koehnlein
koehnlein, @Xitnelat Ignore whitespaces 😉
Windows support for NativePHP was announced this mean, which means that you can now build applications for the Windows platform.
ramsey, The latest issue of @phparch magazine is out!
I love how they were able to get articles about experiences at and photographs from #PHPTek (last week!) included in this issue.
Check it out!
https://www.phparch.com/magazine/2024/04/2024-04-deep-diving-php-security/
jclermont, Yes, I'm a bit of a PHPStorm fan boy. Here's another handy use for the Local History feature. #php #laravel https://masteringlaravel.io/daily/2024-05-02-another-helpful-use-for-local-history