Ben avantajları (ve dezavantajları) PHP ile bir çerçeve kullanarak ne, merak ediyorum?
Ben 3. sürümünden itibaren açık ve kapalı PHP kullanarak oldum. PHP için mevcut çerçeveler hiç kullanmadım, bu yüzden dışarı ne eksik?
Çerçeve, düşük seviyeli ayrıntılar sizi soyutlayan daha üretken hale getirir, ve (örneğin, SQL enjeksiyon saldırıları önleme gibi) düşük seviyeli hata sizi korur.
İyi bir PHP çerçeve endişe ayırmak için sizi zorlar ve sonunda tasarım geliştirir kanıtlanmış mimari, uygular ve okumak ve korumak ve birim test için kod çok daha kolay hale getirir.
İşte referanslar some olarak on why you should kullanmak çerçeve
(Ben bir Symfony geliştirici yaşıyorum ve bu yüzden Symfony. Benzer özelliğe sahip diğer çerçeveler ancak, bence hiçbiri oldukça kapsamlı ya vardır, vardır etrafında dönen bir şekilde cevap verecektir sıra yazılı Symfony).
Quoted from the Symfony Web site:
A framework streamlines application development by automating many of the patterns employed for a given purpose. A framework also adds structure to the code, prompting the developer to write better, more readable, and more maintainable code. Ultimately, a framework makes programming easier, since it packages complex operations into simple statements.
Symfony is a complete framework designed to optimize the development of web applications by way of several key features. For starters, it separates a web application's business rules, server logic, and presentation views. It contains numerous tools and classes aimed at shortening the development time of a complex web application. Additionally, it automates common tasks so that the developer can focus entirely on the specifics of an application. The end result of these advantages means there is no need to reinvent the wheel every time a new web application is built!
Symfony is written entirely in PHP 5. It has been thoroughly tested in various real-world projects, and is actually in use for high-demand e-business websites. It is compatible with most of the available databases engines, including MySQL, PostgreSQL, Oracle, and Microsoft SQL Server. It runs on *nix and Windows platforms. Let's begin with a closer look at its features.
Aşağıdaki gibi web projelerinin ortak özelliklerin çoğu, symfony içinde otomatik vardır:
Eh belki ilk durumda :) yerine PHP C + + kullanabilirsiniz çünkü.
Bir çerçeve tanımlanan yapıları ve uygulamaları ile daha kısa sürede quality, security, vb açısından daha iyi hedeflere ulaşmak için kullanılır.
Eğer büyük veya esnek şey yapmadım - Aslında ben onca yıl herhangi bir çerçeve kullanmadıysanız düşünüyorum. Ama tabii ki bu yüzden ben size projeleri ele bilmek mutluluk duyarız çok çok yanlış olabilir.