What Does a PHP Developer Do?
An introduction to what a backend web developer's day might be like.

Search for a command to run...
An introduction to what a backend web developer's day might be like.

No comments yet. Be the first to comment.
After a few days of using the 512GB MacBook Neo with TouchID, here are my impressions after some heavy, real-world use. I'll disclaim this review by saying that I consider myself a power user; on my m

2024 was a strange year for me that was a mix of trying new things, accomplishing the best work of my career, and stark transitions into unexplored territory. I think it's important to take a moment every once in a while to step back and look at one'...

What I've Been Up To Four Months Into Freelancing

Leaving My Job with No Plan — My New Career as a Freelancer

With a few glasses of wine in me and some nostalgia-fueled synthwave playing, I found myself reflecting on my past, and my history with computers. I got to thinking of my childhood, and more specifically, my personal history with computers. I love te...

Perhaps you're interested in becoming a web developer, or are starting to learn PHP. This article talks about what you need to learn to get started as a working PHP developer (like HTML, CSS, and SQL) and what tasks the daily grind of a PHP developer involves.
PHP is a programming language that is used on the "back-end" of websites. This means that it runs on the server that people visit to access a web site, but it does not run in the browser. If you try to load a PHP file in Chrome or Safari, you'd probably just see the source code and it wouldn't look right.
As a PHP developer, you would be writing code that runs directly on the server, and typically this code will execute when a user visits the webpage and generate the HTML that is sent by the web server software (such as Apache or Nginx) to a user's web browser. See my introduction to PHP for some very simple examples of PHP code.
Programmers who write code intended directly for consumption by a browser are called "frontend developers", whereas programmers who specialize in writing code mainly intended to run on the server are called "backend developers". Many developers have to handle both, however. These developers who are responsible for the whole widget are called "fullstack developers", which are likely to be found in smaller organizations.
If you want a job (or hobby) as a PHP developer, there are certain prerequisites that you will need some degree of competence in. Although this may seem overwhelming at first, you only need to know a few basic things to get started and you can learn more as needed.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
/* This stylesheet will make a page's body black with white text */
body {
color: white;
background-color: black;
}
SQL - Server Query Language. This is the language used to get data into and out of databases. Any website of serious complexity that solves a business problem will need to store and access data, and the most common way of doing this is with a relational database like MySQL. Getting started with simple queries is fairly easy. Here is an example of a query that returns all the data from a table containing user information.
SELECT * FROM users;
SQL can get very complicated when you have to join data from multiple tables or optimize performance with huge databases having millions of records. There are also a number of security issues that you have to be aware of — for instance, if you are not careful, a malicious user could easily inject an SQL query of their own into a form and do something like wipe out data or discover information that they aren't supposed to see!
Linux Administration/CLI (Command Line Interface). Most webservers run Linux or some Unix variant, although it is certainly possible to run a Windows Server installation. In the PHP world, Linux is a very common platform. Depending on the role you have, you will probably need to understand the basics of using a command line interface to install and configure a server, restart a webserver (like Apache), or perform other system maintenance tasks. This is particularly true for backend developers, although some proficiency with command line applications is also very helpful for frontend developers as so much of the tooling needed for sophisticated websites also runs in a CLI.
PHP (PHP Hypertext Preprocessor). Obviously, to be a backend or fullstack web developer you also have to know the language that runs on the backend, which is often PHP. (Python, Java, and JavaScript via Node.js are also very common). PHP is considered a fairly easy language to get started with. It has a clear and simple syntax, and doesn't require complex build and setup to run in many cases. Additionally, there is an excellent ecosystem of PHP packages and frameworks (like Laravel) that take a lot of the hard work out of large and complex projects.
Here is an example of a very simple webpage that uses PHP.
<?php
$message = "Hello World!";
?>
<html>
<body>
<?php
// The ‘echo’ statement will output the value of the variable.
echo $message;
?>
</body>
</html>
Obviously what the job environment is like will depend on a number of factors including what company you are employed with, but if you are employed as a developer, most likely you will be performing the following kinds of tasks.
Although the list above includes its share of frustrating and difficult tasks, being a web developer can be very rewarding and exciting too. If you love creating things, putting your creation out there and seeing the impact it can have on the world, there is a great deal of fulfilment to be had being a web developer. You get to mold the future with your mind and build things that never existed before.
You usually get to work in a nice office environment or at home, solving problems and making things work well. There are also lots of great people in the PHP developer community willing to help out and lend a hand if you get stuck, so the sense of community is a great aspect of being a developer.
If this sounds great to you and you'd like to learn more about PHP and web development, follow me on Twitter and feel free to reach out with any questions!