Fatal error: Uncaught Error: Class 'Phalcon\Loader' not found

Can anyone help me with this?

Fatal error: Uncaught Error: Class Phalcon\Loader not found

Here is my code:


use Phalcon\Loader;
use Phalcon\Tag;
use Phalcon\Mvc\Url;
use Phalcon\Mvc\View;
use Phalcon\Mvc\Application;
use Phalcon\DI\FactoryDefault;
use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;

try {

    // Register an autoloader
    $loader = new Loader();

    // Create a DI
    $di = new FactoryDefault();

    // Set the database service
    $di['db'] = function() {
        return new DbAdapter(array(
            "host"     => "localhost",
            "username" => "root",
            "password" => "secret",
            "dbname"   => "tutorial"

    // Setting up the view component
    $di['view'] = function() {
        $view = new View();
        return $view;

    // Setup a base URI so that all generated URIs include the "tutorial" folder
    $di['url'] = function() {
        $url = new Url();
        return $url;

    // Setup the tag helpers
    $di['tag'] = function() {
        return new Tag();

    // Handle the request
    $application = new Application($di);

    echo $application->handle()->getContent();

} catch (Exception $e) {
     echo "Exception: ", $e->getMessage();

Have you installed Phalcon? Is it present in modules list?