Working with jQuery DataTables
DataTables is a powerful jQuery plugin for creating table listings and adding interactions to them. It provides searching, sorting and pagination without any configuration. In this article we’ll go through the basics of DataTable and how to use some of the advanced features. Setting up DataTables The first step is to obtain the library from […]
Create a Multi-user Presentation with Reveal.js
Creating impressive presentation is an art. For a long time PowerPoint stood alone as the de facto tool for creating presentations. Now, things have changed, as the web has become the focal point for all businesses, and as browser capabilities improved tremendously. Modern browsers are now capable of rendering 3-D graphics and animations just like […]
Convert HTML to PDF with Dompdf
PDF is a standard format originally created by Adobe for representing text and images in a fixed-layout document. It’s not uncommon for a web application to support downloading data, such as invoices or reports, in PDF format, so this article shows you how you can easily generate PDF documents using PHP.
Say Hello to Boris: A Better REPL for PHP
A Read-Eval-Print Loop (REPL) is the console of a programming language in which we can write code line-by-line to see what it does. PHP has a REPL, although it has some limitations. Boris, a tiny PHP REPL library addresses those issues for a better REPL experience. Learn about Boris, and even see how easily it can be integrated into your own applications.
Functional Programming and PHP
Programmers like to talk about functional programming, but if you ask any of them if they’ve ever done it, many would reply “No”. The reason is quite simple: we are taught to think in an imperative manner when we first start learning to program, in terms of flow charts and steps to be followed in the program. Challenge the way you think with this article and learn the basic concepts of functional programming.
Debugging and Profiling PHP with Xdebug
Developers using languages like Java and C# enjoy a powerful suite of debugging tools, often integrated directly with their IDEs. But the disconnected nature of web servers and PHP IDEs prevented us from having many of the same tools available. We manually added debug statements in our code… that is, until Xdebug filled the void. See how to install and configure Xdebug, how to debug your PHP application from Netbeans, and how to view a profiling report in KCachegrind.
Versioning Your Database with Liquibase
Most of the code we write is managed using some sort of version control system, but what about the database schemas? More often we make the changes to our development, test, and production databases manually. With a large team, it becomes difficult to share the changes with everyone. In this article you’ll see how Liquibase, an open-source tool for managing and versioning database schema changes, can help.
Writing a RESTful Web Service with Slim
Learn how to create a RESTful web service using Slim, a PHP micro-framework inspired by the Ruby framework Sinatra. It’s very simple, and is easy to understand and use. Slim is well-suited for creating simple RESTful web services and comes with some minimal components like Router, Request, Response, and View.
Database Interaction Made Easy with NotORM
Object Relational Mappers (ORMs) help you rapidly create applications without worrying about raw SQL queries. But the reality of working with any ORM is that using it is only simple if you already have experience using it. And if you are developing just a simple application with a few tables, using a full-fledged library is probably overkill. You may want to consider using NotORM instead, a light-weight and easy-to-use ORM library that provides an intuitive API.
Using EXPLAIN to Write Better MySQL Queries
Explainkeyword is one of the most powerful tools at your disposal for understanding and optimizing troublesome MySQL queries, but it’s a sad fact that many developers rarely make use of it. In this article you’ll learn what the output of
EXPLAINcan be and how to use it to optimize your schema and queries.