サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
コーヒー沼
fabien.potencier.org
Any major version of a project is an opportunity to revisit its best practices. Modernizing them. Adapting them to the project's new features. Symfony 4 is no exception. Standardization first# Symfony 4 will be an evolution of the current practices, trying to embrace more standard tools. Symfony strives to embrace PHP and web standards. It is hard to believe that Symfony 2 started at a time when C
This is the second installment in a series of articles about Symfony 4. The first one was about the current limitations of the Symfony Distribution model. Monolith projects versus micro-applications; a never-ending debate. Both ways to develop applications are fine in my book. Symfony supports both. Even if the Symfony Standard Edition is probably more suitable for monolith projects as it depends
Note: If you are a Medium user, my new articles are now cross-posted there as well. Note: Symfony 4.0 will be released at the end of November 2017. During the next few weeks, I will publish articles about my ideas and the main changes I want to implement for Symfony 4. Symfony 3.0 was boring, a cleaned-up version of the Symfony 2.8 version: Symfony 3.0 = Symfony 2.8 - deprecated features Symfony 4
Three years ago, I published a series of articles about how to create a framework on top of the Symfony components on this blog. Along the years, its contents have been updated to match the changes in Symfony itself but also in the PHP ecosystem (like the introduction of Composer). But those changes were made on a public Github repository, not on this blog. As this series has proved to be popular,
I've always been fascinated by debugging tools; tools that help you understand what's going on in your code. In the Symfony world, the web debug toolbar and the web profiler are tools that gives a lot of information about HTTP request/response pairs (from exceptions to logs, submitted forms and even an event timeline), but it's only available in development mode as enabling those features in produ
A couple of months ago, Nils Adermann sent me a nice postcard that reminded me that "3 years ago, we [Nils and me] met for the SymfonyLive hackday in San Francisco." Nils was attending the Symfony conference as he announced the year before that phpBB would move to Symfony at some point. At that time, I was very interested in package managers as I was looking for the best way to manage Symfony2 bun
SensioLabs raises 5 million euros to boost the Symfony ecosystem I'm not just a PHP developer, I'm also a serial-entrepreneur. 15 years ago, I co-founded Sensio, a French web agency that eventually created Symfony, a PHP web framework. Last year, we decided to split the company to create SensioLabs, a company dedicated to PHP and Symfony. And today, I'm really excited to announce that SensioLabs j
Packing a Symfony full-stack Framework Application in one File -- Bootstrapping This article is part of a series of articles that explains how to pack a Symfony full-stack application in one file. The first article explains why this might actually be useful: 1) Introduction, 2) Bootstrapping, ... The most common way to create a Symfony project is to start with the Symfony Standard Edition: it defi
I know that this post won't please everyone, but I'm convinced that this is the right thing to do now and I think that most of the Symfony community will love it. Also, I've tried to be subtle in choosing my words, so read carefully and don't over-read what I've written. Long story short: in the coming months, the Symfony core contributors should focus their efforts toward stabilizing the existing
If you are a "connected" developer, you are probably aware of the major vulnerabilities found in Ruby on Rails recently. To be fair, we've also found some serious issues in the Symfony code during the last few months. As security management should be a top most priority for us and our customers, I've recently worked on improving the current situation in the Symfony world, with an enhanced security
What is the difference between a full-stack framework and a micro framework? To me, this is not about the amount of code, but more about how you build an application and how you structure it. Symfony and Silex share a lot of code (Silex specific code being quite minimal), but developing an application with one or the other is a totally different experience. And choosing between the two really depe
Yesterday, Zend Framework 2.0 and Symfony 2.1 were released... almost at the same time. First, I want to congratulate the Zend Framework team for this huge milestone; I know that working on a new major version is no small task. And of course, people started to ask questions about these new versions and one of the most popular was: "Why would I choose framework X over framework Y?". As you can imag
Rants about PHP are everywhere, and they even come from smart guys. When Jeff Atwood wrote yet another rant about PHP, it made me think about the good parts of PHP. The biggest problem of these rants is that they come from people stuck in the old days of PHP. They either don't care or they don't want to admit that PHP actually evolves at a very fast pace, both at the language level but also at the
Today is my "let open source some of my private Github repositories" day, and more specifically, I'm releasing a bunch of code related to documentation. Earlier today, I've released the Sphinx extensions I'm using to generate the Symfony documentation. And now, I'm releasing my API documentation generator. Yes, I know that PHP already has a bunch of such generators, but I started to work on this p
Create your own framework... on top of the Symfony2 Components (part 1) This article is part of a series of articles that explains how to create a framework with the Symfony Components. It is OBSOLETE but an up-to-date version can be found in the Symfony documentation. Symfony2 is a reusable set of standalone, decoupled, and cohesive PHP components that solve common web development problems. Inste
Last week, I held a keynote presentation about Symfony2 at the Symfony Day conference in Cologne. Many people asked me for the slides, but they were quite empty and not that useful. This blog post is more or less what I've said during the first part of the talk. What is Symfony2?# When I ask people what Symfony2 is for them, most of them say something along the lines of: Symfony2 is a full-stack w
People like micro-optimizations. They are easy to understand, easy to apply... and useless. But some time ago, while reviewing pull requests for Twig, I read an interesting discussion about the performance of the ternary operator in PHP (thanks to @nikic for the investigation). Do you know which following snippet is the fastest (of course, they do exactly the same)? // snippet 1 $tmp = isset($cont
I often favor pragmatism over theory; probably because programming is how I earn a living but also because I don't have any computer science degree and what I know I've learned from my experience. In the recent months, there have been a lot of discussions in the PHP community about the usage of private over protected visibility for methods and properties in Open-Source libraries. To summarize my p
In my last two posts, I talked about PHP iterators. Here is a quick tip on the same topic. If you have ever used iterators in your code, you have probably implemented the Iterator interface. Objects of a class that implements Iterator can be iterated over with the foreach loop: $foo = new Foo(); foreach ($foo as $key => $value) { // do something with $key and $value } The Iterator interface has fi
A lot of people complain about "problems" with PHP as a language (function name inconsistencies, register_globals, and much more). But PHP also have a lot of awesome features; at least two of them are in my opinion largely underused: Iterators and Streams. You won't learn how to use them in this post, but with a simple example, I hope you will want to learn more about them. Some weeks ago, I have
HTML and XML documents are the bread and butter of web developers. On a day to day basis, you probably create a lot of HTML documents. And odds are you also need to parse some from time to time: because you consume a web service and want to extract some information, or because you want to gather data from scraped web pages, or just because you want to write functional tests for a website. Retrievi
Symfony Live Conference, Symfony 2.0, and Dependency Injection This has been an amazing week for me, Symfony, and the whole Symfony community. With more than 350 attendees coming from more than 30 countries, the Symfony Live conference was a blast. I want to thank all attendees, speakers, and the Sensio Labs team for coming to the conference and making it a truly fantastic event. If you have not a
My first exposure to YAML was in 2001, back in the days when I was mainly working with Perl. Well, I was not using YAML per se at that time, but rather Data::Denter, a Perl library that provides data serialization/deserialization. I used this library mainly for debugging purposes. From its documentation: "It formats nested data structures in an indented fashion. It is optimized for human readabili
My post about template engines in PHP received more than 70 comments as of now, and counting. That's a lot considering most of them are really well thought out, and backed with solid counter-arguments. Thanks everybody for taking the time to participate constructively to the discussion. I'm really proud that the PHP community (or at least the small part which reads my blog) is able to discuss such
This blog post is not for the faint-hearted! Some people will strongly disagree with me and some others will probably want to kill me at the upcoming Zend Conference. And if starting an argument in the comments can help you feel better, please feel free to do so. If you want to have a more advanced discussion on this topic, vote for my talk at the Zend UnConference. So, you think PHP is a templati
As you might have noticed if you follow me on Twitter, I'm the new project manager of Swift Mailer, a powerful mailing library for PHP. This is a great honor for me to take over such a project. The Swift Mailer project has been initiated by Chris Corbyn some years ago. He has done a wonderful job during the years, trying to find the best way to create a top-notch emailing solution for PHP. With th
September 04, 2009 > September 05, 2009 Tokyo / Japan - 10th Japan PHP conference 2009
Twitter is everywhere nowadays. Odds are eventually you will want to tweet from PHP. No need to use one of the numerous PHP Twitter libraries, as tweeting is as simple as using the PHP built-in file_get_contents() function: function tweet($message, $username, $password) { $context = stream_context_create(array( 'http' => array( 'method' => 'POST', 'header' => sprintf("Authorization: Basic %s\r\n",
次のページ
このページを最初にブックマークしてみませんか?
『Articles - Fabien Potencier』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く