search
HomeBackend DevelopmentPHP TutorialThe price of abandoning PHP is too high, the price of abandoning PHP_PHP Tutorial

The price of abandoning PHP is too high, the price of abandoning PHP

Foreword

The language I used when I first tried programming was php, and I have worked in several companies that use php as the main development language. However, I don't turn a blind eye to other languages, and php is no longer my main development language.

I think I am a person who can be happy because "you don't need to worry too much about language design" and "make money quickly and get work done as easily as possible". I recently left a full-time job where I was primarily working on PHP as a front-end developer.

Recently I read through the blog post "Eevee.PHP: The Debris of Bad Design" that is old but still evokes such real pain that I can no longer ignore it. However, I hit some roadblocks and this is my story about the hard times I had after not using php.

Economic Issues of Working on Free Time Projects

I am free. I don't have to write a line of php code if I don't want to; I no longer have to do backend development work; and, unless the browser crashes due to some catastrophic change, I won't have to for the foreseeable future Do the work.

However, I do have a bunch of projects that I want to plan to build and make happen, more than just one. I'm actually trying to get some satisfying passive income (untaxed income) by building a bunch of smaller websites. (That's my goal anyway) To do this, I launched my first unnamed website yesterday.

Unfortunately, because this is a self-funded project and I need to build a lot of sites, I have to give up some things directly. Below I'll list them, explain why I believe my hosting provider won't work for me, and talk about others who are in the same predicament as me.

Heroku

If I had money, I would put all my applications on heroku. In my experience, Heroku has been incredible. Hosting and configuring your own environment is effortless, it doesn't matter what language you use, and so on.

The problem with using Heroku is its charging model. Although $7 per project per month does not seem like much, when you have many projects, the cost goes up like a rocket. Even with just ten apps, $70 a month is too much for something that may not lead to any results.

The costs above don’t even take into account the use of a database, which is an additional $9 per 10 million rows of data. If a project has a lot of data traffic, it will also increase the cost of the application, and soon we will find that the monthly cost becomes more than a hundred dollars.

Amazon web services

The price of AWS seems cheaper, but I always think that using it will increase complexity in many aspects, and the configuration and cost will also increase the cost. For a small website with only a few hundred visits per month Quite not worth it.

I can’t say I have a lot of experience using AWS, but everything about it has a strong enterprise flavor, and I believe customers with complex applications are their focus.

Perhaps it is worth learning how to deploy on AWS efficiently, but how to deploy git service simply? Do I need additional services for it? Can the same instance run multiple applications? What is the charging model like? Despite looking at their pricing page, I still don't understand which part is relevant to me. After reading their website, I still have a lot of questions in my mind that I can't find answers to.

Microsoft Azure

At first glance, Microsoft’s Azure seems to be the savior. However, even though I really want to deploy large applications here, I still have one concern, and that is about Google and HTTPS.

If you take a look at their pricing model, you should be able to understand (the picture is quoted from my homepage, sorry for the Swedish language~), and it is wisest to look for these. If you choose the Standard Edition, from what I've heard you can deploy up to 50 applications on it. In my case, I almost have to choose the standard version. 580 kronor per month, equivalent to about 70 U.S. dollars. Although it is still a bit expensive, the features I like on Heroku are also available here, so it is worth it. Of course, Azure is a little more complicated and has frequent price fluctuations, but its flaws are not outweighed.

The problem is that the standard version described in the pricing model only supports 5 SNI (Server Name Indication). What does this mean? According to my understanding, only 5 sites support SSL. In view of the fact that Google has become increasingly unfriendly to sites that do not support SSL, and the Let's Encrypt project has enabled every website to use HTTPS encryption, only 5 of my 50 sites have SSL support. , this is really not good. The above is just my personal understanding, and the instructions it provides are somewhat sparse, so it is possible that I have misunderstood it. In fact, I do hope that I am wrong. If so, please reply to me in the comment box below the article.

GleSYS, Digital Ocean, Linode own server, etc.

Using this money to rent a VPS from one of the service providers listed above is the only real alternative. The good thing about GleSYS is that it has a Swedish host available, which means low latency and no risk of the data passing US government scrutiny. I can safely store user data there.

Compared to hosting services, the price is incredibly low, but it does take some time to configure. You have to complete all the settings and organization yourself, which is a lot of work. The biggest reason why I choose a hosting service is because if one of my services goes down while I am at work, I have to wait until I get home from get off work to deal with these things, which may take seven or eight hours. That’s a matter for the future.

The PHP community provides solutions

While Eevee complained about the lack of unique features of the PHP language, the community has come up with the coolest hosting solution I have ever tried. It also happens to be the cheapest I've ever tried.

The solution is Laravel Forge.

If you don’t have immediate access to this link, let me explain it to you. For $9 a month, Laravel Forge provides unlimited production-grade PHP servers (installation, setup, and configuration), and you can control all services from a single web interface. Even more amazing is that I can target any VPS provider, even the simplest AWS or Digital Ocean. This will help you scale your server, set up cron jobs, edit environment configurations, deploy using git push, and more.

The Laravel Forge service gives me the nice feature of unlimited number of applications with Azure or HeroHu (as long as the VPS can handle it). Laravel Forge is not limited to the Laravel framework, any PHP application will do.

Like Eevee, if this article doesn't improve your perception of the PHP community, nothing will. But seriously, how could someone who knew this leave such a great service?

Profit is important

I think my story is very common. I don't think I'm alone. There must be thousands of small business owners in the world who need to host their applications. Either their project happens to be a website.

A $10 server from Linode and a $9 Laravel Forge, they are fast and cheap to deploy, so the server built in this way can quickly replace any assumptions, you will not want to do operation and maintenance work, including server startup , run, install the certificate and other tasks.

I looked for answers on the web, but the only convincing alternative was to use a Continuous Integration service like Codeship. While it's not unlimited and the cost jumps straight up to $49 when you have more than 5 projects (which is the plan I have), it honestly does a pretty good job. In addition, Codeship also provides automated testing and git push deployment services, but does not provide a server, so you still need to prepare and configure the website server and database yourself.

For other languages, maybe Laravel Forge has a better alternative, maybe not. But I still think that, for me and many others, the cost of ditching PHP is simply too high. Even if I could afford it, it wouldn't make much sense.

Finally, quote Eevee again:

There is no doubt that PHP is so popular!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1123828.htmlTechArticleThe cost of abandoning PHP is too high, the cost of abandoning php Preface The language I used when I first tried programming was php, and in several Worked in companies that use PHP as their main development language. But, I won’t...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Continued Use of PHP: Reasons for Its EnduranceThe Continued Use of PHP: Reasons for Its EnduranceApr 19, 2025 am 12:23 AM

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python: Exploring Their Similarities and DifferencesPHP and Python: Exploring Their Similarities and DifferencesApr 19, 2025 am 12:21 AM

PHP and Python are both high-level programming languages ​​that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP and Python: Different Paradigms ExplainedPHP and Python: Different Paradigms ExplainedApr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python: A Deep Dive into Their HistoryPHP and Python: A Deep Dive into Their HistoryApr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

Choosing Between PHP and Python: A GuideChoosing Between PHP and Python: A GuideApr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP and Frameworks: Modernizing the LanguagePHP and Frameworks: Modernizing the LanguageApr 18, 2025 am 12:14 AM

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHP's Impact: Web Development and BeyondPHP's Impact: Web Development and BeyondApr 18, 2025 am 12:10 AM

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

How does PHP type hinting work, including scalar types, return types, union types, and nullable types?How does PHP type hinting work, including scalar types, return types, union types, and nullable types?Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools