@symfony check @chris conferences to learn more about the new Symfony AI https://christopher-hertel.de/
@symfony check @chris conferences to learn more about the new Symfony AI https://christopher-hertel.de/
@symfony check @chris conferences to learn more about the new Symfony AI https://christopher-hertel.de/
🚀 Kicking off the Symfony AI Initiative
➡️ https://symfony.com/blog/kicking-off-the-symfony-ai-initiative
I think some collection of community-approved attributes might be beneficial for PHP.
I’m thinking in terms of attributes like `#[Internal]` that might not make sense to add directly to the language but would be good to have so that static analysis tools and IDEs could standardize on them (like with phpdoc annotations).
Is this something @phpfig would take on? If not them, who?
🚨 #APIPlatformCon Speaker reveal! Meet @gromnan: maintainer of the PHP drivers and libraries for MongoDB and member of the @symfony Core Team. Don’t miss his talk on everything you need to know about using API Platform with MongoDB. Join us: https://api-platform.com/con/2025
@ellisgl interesting, why do you prefer XML over Attributes?
Have you ever used XML for Symfony config or routing? It's set to be deprecated in 7.4. If that's a concern for you, it's the time to speak up.
XML adds extra overhead when creating a Configuration class and an .xsd schema. Good to see it being phased out. https://github.com/symfony/symfony/issues/60200
Just when we thought the #Symfony Dependency Injection component was feature complete, we've opened a new chapter with the introduction of resource definitions. Classes can be tagged according to the interfaces or attributes they use, to be injected them into services.
This leverages the classes exploration feature of the container builder and invalidate the cache when code is modified, making project configuration even more automatic, and still controllable.
https://symfony.com/blog/new-in-symfony-7-3-dependency-injection-improvements#resource-tags
🚀 New in Symfony 7.3: Twig Extension Attributes
"This new syntax makes your extensions cleaner, faster to write, easier to maintain and lazy-loaded by default; while keeping the full power of the Twig integration." Well summarized! #php
https://symfony.com/blog/new-in-symfony-7-3-twig-extension-attributes
🚀 New in Symfony 7.3: Twig Extension Attributes
➡️ https://symfony.com/blog/new-in-symfony-7-3-twig-extension-attributes
@stof That's true!
It would be nice to have a PHP built-in attribute to mark new parameters without breaking backward compatibility. They would work in the same way as func_get_arg. Similar to #[ReturnTypeWillChange] but that could be used in PHP code.
A reminder for maintainers of #PHP libraries: adding a parameter to a method of an interface causes a fatal error in all the classes that implement it. It's a BC break that should be prohibed in a minor version.
In Symfony, we add the parameter virtually using phpdoc, and read it using func_get_arg.
While the major release was made only 5 days ago, we have already reached install parity for the mongodb extension in version 1 and 2 ... with pie.
With pecl, the latest version is automatically installed for most people, so download stats are going well. #PHP
The new major version of the MongoDB PHP driver have been released. This is a boring release that only removes deprecated things. As any other good library that takes care of its users, the awesome features are in the minor releases. https://github.com/mongodb/mongo-php-library/releases/tag/2.0.0 #PHP
Using closures and generators in #PHP classes can create circular references without you even realizing it. Learn to recognize these patterns to avoid memory leaks. https://dev.to/gromnan/php-closures-and-generators-can-hold-circular-references-45ge
The new major version of the MongoDB PHP driver have been released. This is a boring release that only removes deprecated things. As any other good library that takes care of its users, the awesome features are in the minor releases. https://github.com/mongodb/mongo-php-library/releases/tag/2.0.0 #PHP
The Symfony Demo project upgraded to PHPUnit 11, so you can upgrade your project too.
You have to replace all the PHPUnit annotations by the corresponding PHP Attributes. But Rector will ease this process: https://github.com/rectorphp/rector-phpunit
The symfony/phpunit-bridge is no longer necessary as PHPUnit now has its own error and deprecation handler. Say goodbye to simple-phpunit.
More details in the PR: https://github.com/symfony/demo/pull/1549 #PHP
MongoDB integration for Laravel version 5.2 released. With support of Atlas Search as search engine for Laravel Scout.
https://laravel-news.com/laravel-mongodb-5-2
We've done it, but it's not really necessary. If the documents are already stored in MongoDB, it's easy to create a Search Index and the server synchronizes the data into a Lucene index.
That's why MongoDB is a developer experience focused platform: 1 service with the database and the search engine.
Ça va être très instructif. je vous recommande de venir si vous pouvez. https://phpc.social/@symfony@mastodon.social/114103347876594891
If you're a PHP extension developer, we're interested too.