Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Django
Django

7.5K
5.3K
+ 1
2.8K
PHP
PHP

58.8K
14.7K
+ 1
4.3K
Add tool

Django vs PHP: What are the differences?

What is Django? The Web framework for perfectionists with deadlines. Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

What is PHP? A popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

Django and PHP are primarily classified as "Frameworks (Full Stack)" and "Languages" tools respectively.

"Rapid development", "Open source" and "Great community" are the key factors why developers consider Django; whereas "Large community", "Open source" and "Easy deployment" are the primary reasons why PHP is favored.

Django and PHP are both open source tools. It seems that Django with 42.6K GitHub stars and 18.3K forks on GitHub has more adoption than PHP with 23.9K GitHub stars and 5.53K GitHub forks.

Facebook, Slack, and Lyft are some of the popular companies that use PHP, whereas Django is used by Instagram, Pinterest, and Udemy. PHP has a broader approval, being mentioned in 8910 company stacks & 2940 developers stacks; compared to Django, which is listed in 993 company stacks and 914 developer stacks.

What is Django?

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

What is PHP?

Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Django?
Why do developers choose PHP?

Sign up to add, upvote and see more prosMake informed product decisions

Sign up to add, upvote and see more consMake informed product decisions

What companies use Django?
What companies use PHP?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Django?
What tools integrate with PHP?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Django and PHP?
Flask
Flask is intended for getting started very quickly and was developed with best intentions in mind.
Node.js
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Rails
Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.
Laravel
It is a web application framework with expressive, elegant syntax. It attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
WordPress
The core software is built by hundreds of community volunteers, and when youโ€™re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine. Over 60 million people have chosen WordPress to power the place on the web they call โ€œhomeโ€ โ€” weโ€™d love you to join the family.
See all alternatives
Decisions about Django and PHP
No stack decisions found
Interest over time
Reviews of Django and PHP
Review ofPHPPHP

source: w3techs.com

Rants about PHP are everywhere, but during the last years the language and the whole ecosystem has evolved.

The lastest versions support namespaces, closures, traits, generators and with composer a dependency manager that changed the way PHP developers work and collaborate.

How developers use Django and PHP
Avatar of Vladislav Moshynec
Vladislav Moshynec uses PHPPHP

Use the ipwhois.io IP lookup API to quickly and simply integrate IP geolocation into your script or website. Save yourself the hassle of setting up local GeoIP libraries and having to remember to regularly update the data.

GitHub

Avatar of ShadowICT
ShadowICT uses PHPPHP

We use PHP as our main backend preprocessor. Being a well established language, it is supported by a large community as well as a dedicated team of developers. It is used for much heavier projects that do not require realtime processes as well as being used in a hybrid system alongside NodeJS.

Avatar of MOKA Analytics
MOKA Analytics uses DjangoDjango

Django takes the hassle out of building an enterprise web application using Python.

  • admin app for administration
  • ORM for deploying against different database vendors
  • social auth package for authentication with enterprise IdP
  • guardian package for authorization
Avatar of Andrew Gatenby
Andrew Gatenby uses PHPPHP

PHP has been the backbone of what we've done at Visualsoft for years. We have lots of experienced people who have used it and know how to get the best out of it. It's come on leaps and bounds over recent years, and is the basis of pretty much everything we'll build with.

Avatar of Yaakov Gesher
Yaakov Gesher uses DjangoDjango

Our backend was written in Django. We took advantage of the ready-to-go admin interface as a go-to solution for the client to be able to authorize his users, as well as other functionality, while most of the work was done through the Django Rest Framework.

Avatar of Ordius IT Solutions Pvt Ltd
Ordius IT Solutions Pvt Ltd uses PHPPHP

The reason being they are simple to learn and easy to implement apps on any size.

The learning curve for PHP and MySQL is less compared to MEAN. Itโ€™s advisable to learn PHP and MySQL if you want to have a taste of web-development or you are in a hurry.

Avatar of IPWHOIS.io - IP Geolocation API
IPWHOIS.io - IP Geolocation API uses PHPPHP

Use the ipwhois.io IP lookup API to quickly and simply integrate IP geolocation into your script or website. Save yourself the hassle of setting up local GeoIP libraries and having to remember to regularly update the data.

Avatar of Blair Gemmer
Blair Gemmer uses DjangoDjango

Hands down the best Python web framework I've used. Very easy to extend and add apps and go from 0 to full project quickly and painlessly. I built a fully authenticated project with a single endpoint in less than 30 minutes.

Avatar of Kang Hyeon Ku
Kang Hyeon Ku uses DjangoDjango

์ •๋ง ํŽธ๋ฆฌํ•˜๊ณ  ๋งŽ์€๊ฒƒ์„ ์•Œ์•„์„œ ์ œ๊ณตํ•ด ์ฃผ๋Š” ํ”„๋ ˆ์ž„์›Œํฌ ์ด๋‹ค. ์ฑ…์˜ ์˜ˆ์ œ๋งŒ ์ง„ํ–‰ํ•ด์„œ ๋งŽ์ด ์จ๋ณด์ง€๋Š” ๋ชปํ–ˆ์ง€๋งŒ, ์‰ฝ๊ฒŒ ์‰ฝ๊ฒŒ ์›น์„ ๊ฐœ๋ฐœ ํ•  ์ˆ˜ ์žˆ๋Š” ์ ์ด ๋งค๋ ฅ์  ์ด๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ orm ์ด ๊ธฐ๋ณธ์œผ๋กœ ๋‚ด์žฅ ๋˜์–ด ์žˆ๊ณ  db ๋„ sqlite ๊ฐ€ ๊ธฐ๋ณธ์œผ๋กœ ๋˜์–ด์žˆ์–ด. ๊ทธ๋ƒฅ django ๋งŒ ์„ค์น˜ํ•˜๋ฉด ๋ฐ”๋กœ ์›น๊ฐœ๋ฐœ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

Avatar of Seungkwon Park
Seungkwon Park uses DjangoDjango

django๋Š” ์ €์˜ ๋ฌด๊ธฐ์ž…๋‹ˆ๋‹ค.

django ์ด์™ธ์— flask๋กœ ๊ฐ„๋‹จํ•œ restful api๋ฅผ ๋งŒ๋“ค๋ฉด์„œ ๋Š๋‚€์ ์€ framework ๋ณด๋‹ค ์–ธ์–ด๊ฐ€ ์ค‘์š”ํ•˜๋‹ค๋Š”๊ฒƒ์„ ์•Œ์•˜๊ณ  django๊ฐ€ ์–ผ๋งˆ๋‚˜ ํฐ framework์ธ์ง€ ์•Œ๊ฒŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ €๋Š” signal ์‚ฌ์šฉ์„ ์ข‹์•„ํ•ฉ๋‹ˆ๋‹ค.

How much does Django cost?
How much does PHP cost?
Pricing unavailable
Pricing unavailable