Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

Fatal error: Class 'Nylas' not found in C:\xampp\htdocs\nylas-php\index.php on line 5 #14

Description

@stplsiraj

I'm getting the above error while I have already used Nylas, class Nylas not found.
Anybody can help me with this?

my code is:

`<?php
namespace Nylas;

use Nylas;

$client = new Nylas(***, ***);
$redirect_url = 'http://localhost/nylas-php/login_callback.php';
$get_auth_url = $client->createAuthURL($redirect_url);

// redirect to Nylas auth server
header("Location: ".$get_auth_url);
?>`

My folder structure is:

Nylas folder

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions