Servage Magazine

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

Archive for August, 2017

Hybrid mobile application with Ionic

Sunday, August 27th, 2017 by Servage
ionicIonic is a framework created with Angular for building cross-platform mobile applications using web technologies. The main language for developing with Ionic is TypeScript, which is based on JavaScript. Ionic allows you to create applications for the most popular mobile operating systems by maintaining only a single code base. Getting Started If you have used Angular before, getting started with Ionic is easy. If not, don’t worry—there’s only a few commands to run and your first project will be up and running. The recommended way to create a new Ionic project is to use the Ionic CLI which is a tool similar to the Angular CLI. It can be used to not only create ...

What does it take to build an API?

Tuesday, August 22nd, 2017 by Servage
api-cloudBuilding a fully functional API consists of multiple pieces that are eventually connected together, such as authentication, integration with external services and the core application logic. In this article we will see what it takes to build a full API and what you should consider when the time comes to build one. Authentication If you application has user accounts, you will need to handle authentication with your API. The first thing you should do is decide how users authenticate. Is it a traditional username and password combination, an API key, or perhaps something more advanced like OAuth 2? Either way, if your application handles login details, you should also set up an SSL ...

Synchronizing files between web servers

Wednesday, August 16th, 2017 by Servage
syncMany applications handle files in a way or another. Support tickets attachments, profile pictures, forum posts and many other features require files to be stored on servers. Often the easiest way is to store them on the filesystem of a web server. If your website consists of multiple web servers, you must send the uploaded files to the other servers as well to keep them synchronized. Here are a few suggestions on how you can achieve that. Sending Files Using FTP FTP is available on most web hosting environments. FTP is simple to use in PHP and supports a wide variety of commands for file handling. Whenever one web server receives a file, you ...

PHP best practices for using Traits and Interfaces

Thursday, August 10th, 2017 by Servage
php-codeDo you often notice yourself ending up writing the same code in multiple files? Do you wish you could force similar classes to follow the same structure? Traits and interfaces are something new PHP developers tend to overlook, but they are perfect in solving problems like these. Traits: An Alternative to Multiple Inheritance Traits have been available in PHP since 5.4. A trait is a PHP file that uses the trait keyword instead of class. Traits and classes are quite similar: classes can be extended and traits can be used inside other classes to prevent having to write same code twice in different files. Instead of writing the same method for two classes, ...

Things that every PHP developer should know

Saturday, August 5th, 2017 by Servage
phpThe PHP ecosystem is relatively simple to keep up-to-date on once you know your way around it. The ecosystem has not changed as significantly as let’s say JavaScript over the past few years. However, there are some concepts every developer should be familiar with, as well as some tools that have become standards in PHP. Let’s have a look at these things you should be familiar with as a PHP developer. Composer Composer is the first thing that comes to the mind of developers when they have to name one great thing about PHP. Composer is a package and dependency manager tool for PHP, and it makes working with external libraries much easier ...

What is Vue.js?

Tuesday, August 1st, 2017 by Servage
vueVue.js is a framework for building interactive user interfaces. It has gained quite a bit of popularity among front-end developers for being easy to use and working well in different types of projects. What is Vue.js more specifically and how does it work? Let’s find out. Vue for Views As the name might suggest, Vue.js is the V in MVC. You can use it to build the view side of your application without worrying about the rest of your technology stack because Vue.js works well with almost any type of back end. Vue utilizes the same approach with a virtual DOM as React, making it fast to render changes on a page. It is ...