Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for July, 2015

Create PDF files with PHP

Friday, July 31st, 2015 by Servage
pdf-phpPDF files are useful for many purposes. It is an acronym for Portable Document Format which provides a file that will display a document the same way on any device, regardless of operating system and other software, as long as a PDF viewer is available. PDF files are nowadays viewable by default on most devices including smartphones and tables. In comparison to web content, PDFs do not have the same intelligent features such as styling and responsiveness. There is also no underlying script language as advanced as Javascript available to web browsers. However, that is not really a problem because PDFs fulfill an entirely different purpose. They are especially useful when it comes ...

Beautiful date range picker for Bootstrap

Saturday, July 25th, 2015 by Servage
date-range-pickerAdding dates via input elements in forms can be cumbersome unless a date picker is used. There are a few plugins available for jQuery and Bootstrap which make this process simple - yet implementing a powerful and advanced tool. The tool described below is called "Date Range Picker for Bootstrap" and is ready to go with a very simple implementation. Getting started The first step is to include the relevant resources into your site. The dependencies are Bootstrap (and jQuery), so you  need to get them first. Thereafter add the resources for the data range picker plugin. <!-- Include dependencies --> <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/2.9.0/moment.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3.3.2/css/bootstrap.css" /> <!-- Include date range picker ...

Using the cache engine in Laravel for better performance

Sunday, July 19th, 2015 by Servage
cache-redisOne of the common problems with website performance is slow load times due to long response times from the server. The response can be slowed down for various reasons, and thankfully there are also multiple points where optimization can occur. Regardless of network issues on either end of the connection, you can always optimize load times with caching. This may even be a significant improvement, especially when caching database operations. Laravel cache engine In the Laravel framework caching is built into the core and is therefore available in the default installation. You can basically cache anything right from your PHP code. This is useful for caching both direct database results, but also processed ...

Beautiful charts enrich your data

Sunday, July 12th, 2015 by Servage
chartjsMany websites display data tables as part of their content. This is easily done with the <table> element in HTML, which is invented for the purpose of showing tabular data. However, graphs and charts have been more cumbersome for years, because they are more complex content elements. Initially charts were generated as images which could be included in the web page. Later the Flash technology has made more interactive charts possible, however the problems with Flash and its limitations have rendered those kinds of charts unpopular. Lately HTML has evolved a lot, and with the introduction of the <canvas> element more advanced drawings on pages have become possible. With the <canvas> element ...

Swift concept testing with JsFiddle and Bootply

Wednesday, July 8th, 2015 by Servage
jsfiddle-bottplySpeed of development is a crucial factor for web projects. Especially commercial projects need to stay on top of the development workflow all the time, so new and improved features can be released often and successfully. There is a plethora of tools available to help coding, but many smaller groups work just fine with a basic local development setup and some simple project management. Furthermore mockup and prototyping tools are really helping you speed up development. Therefore consider using the tools below when you need to test solutions for smaller problems or quickly get an overview of an idea. Test Javascript, HTML and CSS online with JsFiddle Using JsFiddle you get a simple web interface where ...

Web site authentication with Laravel

Friday, July 3rd, 2015 by Servage
authenticationThe ability to register and login is the basis for many features on most websites. Therefore authentication is an issue which developers are confronted with in almost every single project. Thankfully the Laravel developers have realized this, and therefore made it very easy to implement authentication. Actually default Laravel installations ship with the required pieces already available. You just need to move a few things into place to make it work for your project. Laravel provides the required controllers for the authentication procedure, but there are no routes active for this purpose by default. This is to avoid opening your web site to authentication unless you want it. Therefore simply add the following ...