Creating apps with PHP blocks

Build with Blocks

© Lead Image © Vladimir Nenov,

© Lead Image © Vladimir Nenov,

Article from Issue 237/2020

Build simple PHP applications quickly with ready-to-use blocks.

PHP is great. It feels approachable and intuitive, and it allows you to write a working application with just a handful of lines of code. PHP basics are relatively easy to master, and there are plenty of books and online resources that can help. As with any programming language, things can get rather hairy sooner or later. But even with basic PHP knowledge, you can build simple yet useful applications. As you progress, you'll notice that many PHP applications share a lot of common code. With time, you may even build your own library of reusable PHP blocks that can significantly reduce the amount of effort required to build an application.

The good news is that you don't have to grow your PHP collection from scratch: The PHPlattenbau project [1] created by yours truly (see the "Personal Note" box) provides several blocks for building a wide range of PHP applications. Each block in PHPlattenbau is actually an application that performs a simple task using one or several common PHP techniques. By adding and mixing these blocks or their parts, you can quickly build a wide range of PHP applications.

Tooling Up

You don't need much to get started with PHP and PHPlattenbau on Linux. Obviously, you need PHP 7.x installed on your system. To install PHP on openSUSE, run the command:


Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Network Block Devices

    You don’t need Samba or NFS to support a diskless client. A remote block device can help improve performance and efficiency. We'll show your how.

  • OpenLaszlo

    Long before Ajax hit the scene, Flash gave developers a basis for designing interactive web content. The OpenLaszlo framework, with its easy-to-learn command syntax, is the foundation on which many Flash applications build.

  • Tapping Data with the RaspPi

    If you have a weather station that allows you to access data via a USB port, you can use your Raspberry Pi to analyze the data and publish the results via a web application.

  • Smart Picture Frame

    A digital picture frame displays photographs and a current weather forecast with just a few hundred lines of Bash and a Raspberry Pi.

  • OpenDocument Intro^

    OpenDocument format offers a new approach to data storage and document exchange for office applications. But what does ODF mean for the user? What’s inside an ODF file? How portable is ODF? We examine these questions in this month’s cover story.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95