Creating a Fibonacci sequence service in Drupal 8


In this video, we are going to be creating a Drupal 8 service that is going to be generating the Fibonacci sequence.

We are going to learn what the Fibonacci sequence is, then we are going to briefly check what is a recursive function. After that, we are going to create a Drupal 8 module and in it, we are going to create a service for generating the Fibonacci numbers. For our algorithm, we are going to be using a recursive function.

Here you could find the full final code of the module:

Meet the author

Nikolay is a Drupal PHP developer with more than 7 years of experience. Passion for teaching, passion for simplicity and effectiveness of the code are just some keywords that he cares about. See more ...
Drupal Up is a platform for learning Drupal ...

Drupal Dan promoting
The idea is though not just to be another platform with some boring videos but all the videos to be inspired by real-world problems. That means something that you will most probably need if you work with Drupal. We want you to be successful and we want to teach you everything we know about Drupal!
So watch the videos, try to follow and reproduce, ask questions and you will see you will be able to conquer this wonderful sea that Drupal 8 is.