Developing Advanced Web Applications with the Yii Framework
Stenvall, Sam (2014)
Stenvall, Sam
Arcada - Nylands svenska yrkeshögskola
2014

Creative Commons Attribution-ShareAlike 3.0 Unported
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2014121519726
https://urn.fi/URN:NBN:fi:amk-2014121519726
Tiivistelmä
The purpose of the thesis is to describe and evaluate a PHP framework called Yii, with a focus on how to use it to build web applications. The thesis is backed by an application called XBMC Video Server which has been developed using the framework. XBMC Video Server is a standalone web-based web application which enables streaming and downloading of media from XBMC, a popular entertainment center software. XBMC Video Server is published as free software. In the thesis I’ve tried to illustrate how the Yii framework is used by using examples from XBMC Video Server in order to provide an insight into how it can be used when developing more unique projects. The thesis begins with an introduction to the Yii framework itself, its history and some of the available alternatives to it. Furthermore the framework is analyzed from a practical perspective with focus on features and technologies that have been utilized in XBMC Video Server. To give the reader a better overview, illustrations in the form of short code samples are used. The dependency manager Composer is described shortly in the second part of the thesis, since it’s an integral part of XBMC Video Server. In the third and final part the XBMC Video Server application itself is described both from a technical and a user interface standpoint. Illustrations in the form of screen shots are used to give a better picture of the information that the text is trying to convey. Syftet med arbetet är att beskriva PHP-ramverket Yii med fokus på hur man kan använda det för att bygga webbapplikationer. Arbetet baserar sig på programmet XBMC Video Server som skapats med hjälp av ramverket. Programmet är en fristående webbapplikation som möjliggör strömning och nedladdning av den media som användaren har tillgänglig i XBMC. Programmet har från början publicerats som öppen källkod. I arbetet har jag strävat efter att illustrera ramverkets användning med exempel från XBMC Video Server för att kunna ge en praktisk inblick i hur det kan användas i verkliga livet för mer nischade projekt. Arbetet börjar med en introduktion till Yii-ramverket, hur det har uppstått och vilka alternativ det finns till det. Vidare beskrivs ytligt hur ramverket används rent praktiskt, med fokus på sådana funktioner och teknologier som används i XBMC Video Server. Illustrationer i form av korta kodsnuttar används för att ge en bättre överblick. I arbetets andra del beskrivs i korthet pakethanteraren Composer som är en integral del i XBMC Video Server. I den tredje och sista delen beskrivs XBMC Video Server både från ett tekniskt- och ett användargränssnittsperspektiv. Illustrationer i form av skärmbilder från programmets centrala delar används för att ge en helhetsbild av det som texten beskriver.