Archive | PHP RSS feed for this section

mPDF: HTML to PDF introduction

mPDF is a simple and popular tool for shared hosting users to create and convert UTF-8 encoded HTML pages to PDF files. In other words mPDF is a PHP classes based on FPDF and HTML2PDF tools which purpose is the same – to create and manage PDF documents using simple PHP. It’s worth mentioning that on some basis mPDF is slower and can produce bigger PDF files than its predecessors, however it has many capabilities and simpler to use for daily basis.

By using mPDF you have to create an HTML file structure which will be converted to PDF format file. You can also use some CSS coding and improve your files. You can find all the supported CSS attributes in this classes documentation, but I can say that you can securely use most popular and common CSS attributes for your elements. However, there are some restrictions using HTML tables and styling text inside cells.
Read More…

Symfony2 based free and open source chess game – Lichess

Lichess is another free game for chess players. You can not only play with people connected at the moment, but to also generate a unique link and invite your friend for a match.

However, the game is not the main purpose. I suggest you to view the source code kept in GitHub and see a live example of Symfony 2 and PHP5.3 usage. I think that this kind of example beats all the simple and sometimes written with mistakes articles and tutorials on the Internet. It’s worth looking and you might try Symfony2 for yourself if your hosting provider supports PHP 5.3.