PHP is a general scripting language. You don't have to use it only for websites, or things with frameworks. You can build one-off tasks, scrapers, anything really. even though you could use a framework, alot of that type of "worker" logic doesn't really need a framework. I have a ton of queued jobs that operate with laravel horizon supervisors, but the logic itself usually doesn't involve the framework, at all. Answer from barrel_of_noodles on reddit.com
🌐
GitHub
github.com › YonLJ › purephp
GitHub - YonLJ/purephp: Purephp is a PHP templating engine inspired by ReactJS functional components.
Purephp is a PHP templating engine inspired by ReactJS functional components.
Author   YonLJ
🌐
Reddit
reddit.com › r/php › why do some people still use pure php if there are so many incredible php frameworks like laravel?
r/PHP on Reddit: Why do some people still use pure PHP if there are so many incredible PHP frameworks like Laravel?
November 26, 2023 -

Most of my coding have been personal projects. Several are big, such as dating website.
I learned PHP handwriting everything from scratch. So I've maintained that habit. Development is slower, but I'm not tethered to any external entities for upgrades.

Whenever a new version of PHP comes out, I just clone my existing website into a subdomain, and start testing with the latest version of PHP. Usually I get through fixing bugs in a matter hours. It's never that easy with frameworks. You must wait for them to upgrade the framework first.

Once I used Kohana framework for a project. Kohana died in 2017. If my project needs latest PHP, the entire application would have to be re-written. A real nightmare and waste of time and money. This very reason is why I don't use frameworks.

More discussions here...

https://www.quora.com/Why-do-some-people-still-use-pure-PHP-if-there-are-so-many-incredible-PHP-frameworks-like-Laravel

How do PHP devs today feel about using frameworks vs pure PHP?

🌐
Rip Tutorial
riptutorial.com › pure functions
PHP Tutorial => Pure functions
YAML in PHP · Bulk Insert · Bulk Delete · Bulk Update · Bulk Merge · A pure function is a function that, given the same input, will always return the same output and are side-effect free.
Top answer
1 of 4
14

Writing a complex application from scratch, I would definitly not use "bare PHP" : I would certainly use a framework : they provide :

  • a large number of useful classes/methods
  • some set of rules -- like "in which directory should controllers be saved", "how to write a view", ...
  • MVC -- i.e. they help with better structuration of the project

Note that this answer is valid for both personnal projects, and professionnal projects.


There are several great Frameworks in PHP, like :

  • Zend Framework
  • Symfony
  • CakePHP
  • Code Igniter
  • Kohana

One thing to remember : learning how to use a framework well will take some time : starting with a small project, before going for a big one, would probably be a good idea ;-)


Now, when you're asking yourself the question of "which framework should I choose", it's mostly a matter of personnal preferences... And here are a couple of questions/answers that might help a bit :

  • PHP Framework Decision - Analysis paralysis!
  • To use a PHP framework or not?
  • PHP - MVC framework?
  • Which PHP Framework is right for this project?
  • Best PHP framework for an experienced PHP developer?


As you're asking me which Framework I would choose ; well :

  • I really like Zend Framework, and often use Doctrine as ORM (it's the default ORM of Symfony, but can be used very easily with ZF)
  • If I had to choose another one, I would probably go with Symfony, as I've seen it used on a couple of projects at work, and know many people who work with it and like it
2 of 4
2

If you already know that language, you should most definitely use a framework (unless you're a masochist).

For me, besides that fact that they're usually bundled with all sorts of great libraries, using a framework is all about using time effectively.

Most importantly, it will save you time. You're freed from the nitty-gritty of worrying about the foundation/architecture and are able to spend your time of the features of the application itself.

Also, it will save others time; especially since you plan on being all open sourcey.

🌐
GitHub
github.com › topics › pure-php
pure-php · GitHub Topics · GitHub
A powerful PHP e-commerce platform with a modern dashboard, analytics, user & product management, secure shopping cart, and data-driven insights. Easily launch and scale your online store, make informed decisions, and boost sales.
Find elsewhere
🌐
GitHub
github.com › antonmedv › purephp
GitHub - antonmedv/purephp: PurePHP Key-Value Storage
February 10, 2023 - This is simple key-value storage written on PHP. It does not use files, or other database, just pure PHP.
Starred by 87 users
Forked by 11 users
Languages   PHP 100.0% | PHP 100.0%
🌐
Koolreport
koolreport.com › docs › integration › pure php
Pure PHP | KoolReport Documentation
What we means by pure PHP is that you don't use any kind of framework, you only need to draw charts inside a single php file.
🌐
JetBrains
blog.jetbrains.com › phpstorm › 2020 › 10 › phpstorm-2020-3-eap-4
PhpStorm 2020.3 EAP #4: Custom PHP 8 Attributes | The PhpStorm Blog
June 15, 2021 - The #[Immutable] attribute will work even with PHP 7.4 and lower! You can mark functions that do not produce any side effects as pure.
🌐
Nelko Dev
nelkodev.com › en › blog › laravel-vs-pure-php-a-duel-for-efficiency-in-web-projects
Laravel vs Pure PHP: A Duel for Efficiency in Web Projects
June 3, 2024 - Learning curve: For beginners in web programming, learning PHP without a framework can be a good starting point as it forces you to understand the fundamentals. Less Overload: By not having the additional functionality that frameworks include, pure PHP tends to be lighter, which can lead to better performance in smaller applications.
🌐
Quora
quora.com › Which-is-better-using-pure-PHP-or-Framework
Which is better, using pure PHP or Framework? - Quora
Answer (1 of 20): * If you are making a small project where you don’t expect a huge amount of traffic, you can just use framework, because a framework takes care of many things including security, routing, database queries etc. which may take months to build properly yourself. * If you are maki...
🌐
GitHub
gist.github.com › greut › 949850
A web server in pure PHP (non-concurrent and concurrent) · GitHub
April 30, 2011 - A web server in pure PHP (non-concurrent and concurrent) - run.php
🌐
Medium
medium.com › @sanjelsarbada12 › how-i-rebuilt-laravels-structure-in-pure-php-without-laravel-23e42aa12b58
How I Rebuilt Laravel’s Structure in Pure PHP (Without Laravel) | by Sarbada sanjel | Medium
June 12, 2025 - core-php-framework/ ├── app/ │ ├── Controllers/ │ ├── Models/ ├── resources/ │ └── views/ ├── routes/ │ └── web.php ├── public/ │ └── index.php ├── config/ ├── .env └── composer.json
🌐
Tutorialspoint
tutorialspoint.com › php › php_core_vs_frameworks.htm
Core PHP vs Frameworks
A web framework, especially a PHP framework is a collection of one or more PHP libraries and classes. It provides a generic functionality that allows the developer to concentrate more on the application logic, rather than writing code scratch. It provides a reusable software environment that quickly builds a minimal working template application. Developing a web application purely in core PHP has its own advantages and disadvantages −
🌐
Reddit
reddit.com › r › PHP › comments › 234shb › pure_php_vs_using_a_framework
"pure" php vs using a framework.
April 15, 2014 - From my understanding a minimal framework like CI can only make your life easier by implementing low level operations and taking care of things like DB connections and the likes, and it is of course still "pure php", right?
🌐
Packagist
packagist.org › packages › phpolar › pure-php
phpolar/pure-php - Packagist
Templating that's just PHP. That's it. Seriously. Support using pure PHP templates with automatic XSS mitigation.
🌐
Pure-php
pure-php.de
Pure PHP | PHP unconventional
<?php $ws = new XML_RPC_Server(); $ws->registerFunction('getTime'); $ws->registerMethod('Product::getPrice'); $ws->registerMethod('Product::getDetail'); $ws->registerMethod('Product::getBinaryPicture'); $ws->run(); ?> Example Source, http://www.pure-php.com/php/service.source.php The Server http://www.pure-php.com/php/xmlrpc.php.txt add new comment | read more
🌐
Quora
quora.com › Why-do-some-people-still-use-pure-PHP-if-there-are-so-many-incredible-PHP-frameworks-like-Laravel
Why do some people still use pure PHP if there are so many incredible PHP frameworks like Laravel? - Quora
Answer (1 of 24): Is it a luxury bulletproof SUV or a Ducati 1098S you be a building grasshopper? 1. Performance. Age old axiom about programming is only write code for what you need and hone those needs carefully. 2. Framework upgrade costs. A best practice is to keep components up to date. Thi...
🌐
Eilgin
eilgin.github.io › php-the-right-way
PHP: La bonne manière
Les templates “pur” PHP sont ceux qui n’utilisent que du code PHP natif. C’est un choix naturel étant donné que PHP est lui-même un language de templating. Ce terme signifie tout simplement que vous pouvez combiner du code PHP avec un autre langage comme l’HTML.