Servage Magazine

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

Archive for September, 2017

Is Yarn package manager the successor of npm?

Friday, September 29th, 2017 by Servage
yarnNpm has been the most popular package manager for JavaScript with little competition for years. Starting from 2016, an alternative called Yarn has become more and more popular for managing dependencies in JavaScript projects. How is Yarn different, what can it do and is it better than npm? The Benefits of Using Yarn Probably the biggest advantage of Yarn is that existing projects using npm work with Yarn out of the box. If your project has a composer.json file with dependencies inside, you can use Yarn to install them. Another benefit of Yarn is its speed and performance. In almost all cases, it installs your dependencies to the node_modules directory faster than npm. It ...

What has changed in Laravel 5.5?

Monday, September 18th, 2017 by Servage
laravelA new major version of Laravel is scheduled for release in late August 2017. In addition to being a long-term support release, many new features will be added to the framework, including a new error handler, custom validation rules, a new Artisan command and more. Let’s have a closer look at these new features. The “migrate:fresh” Command In previous versions of Laravel, the migrate:refresh command has been used as a quick way to roll back all changes made to a database. What it does is simply execute the down() method of all migrations followed by the up() method. The new command migrate:fresh does the same but skips calling the down() method first. In many ...

Getting started with Gulp

Thursday, September 14th, 2017 by Servage
gulpGulp is a task runner for JavaScript that can automate away repetitive tasks so you can focus on coding instead. Gulp is an extremely versatile tool that can automate tasks from transpiling SCSS to live reloading with Browsersync. Let’s have a look at some of the most useful tasks you can automate with Gulp and a quick look at how to set it up. Transpiling SCSS Using a CSS preprocessor like Sass is quite common these days, especially when working with front-end frameworks because of how well it integrates with them. Sometimes it can be quite confusing to set up an automated transpiler that converts SCSS to CSS. Gulp makes this possible with ...

CSS grid and the future of Flexbox

Wednesday, September 6th, 2017 by Servage
css-flexboxFlexbox has been around for a while now and we have reached the point where you can safely use it in new projects. Recently, a new similar layout system called CSS Grid has been released. It comes with most of the features from Flexbox and some more. For instance, CSS Grid is a two-dimensional layout system compared to Flexbox which only supports one dimension. This article gives you a basic understanding of the new grid layout as well as the future of Flexbox and CSS Grid. Two Dimensions Flexbox is a one-dimensional layout system. This means it supports either rows or columns but not both. It is possible to created nested containers with ...

Building linked data APIs with API Platform

Saturday, September 2nd, 2017 by Servage
api-platformAPI Platform is a framework for building RESTful APIs using PHP. It’s built on top of Symfony 3, and creating your first RESTful API can be done in just 5 minutes. API Platform is specifically designed for building APIs that utilize linked data, which is often used by libraries, social network websites, online stores and other websites where data is strongly related to other data. Features Briefly API Platform comes with a big collection of features designed to make building APIs using linked data easy. It comes with a CRUD out of the box for create, read, update and delete actions like RESTful APIs usually do. It integrates well with Swagger, a tool ...