• 홈
  • 컬렉션
  • 카테고리
  • 태그
  • 가격
  • 제출
    Decorative pattern
    1. Home
    2. Others
    3. guzzle-toggl

    guzzle-toggl

    A PHP library for Toggl API v8 built on the Guzzle HTTP client, allowing PHP applications to integrate with Toggl’s time-tracking features programmatically.

    🌐웹사이트 방문

    이 도구 정보

    guzzle-toggl

    Type: PHP library / Toggl API client
    Category: others
    Source: GitHub – arendjantetteroo/guzzle-toggl

    A PHP client for the Toggl Track API, built on the Guzzle HTTP client. It allows PHP applications to integrate with Toggl’s time-tracking and reporting features programmatically.


    Features

    • Toggl API support
      • Supports Toggl Track API v9
      • API key–based authentication
      • Supports Toggl Reports API v2
    • HTTP client foundation
      • Built on Guzzle 7
    • Client instantiation & configuration
      • Factory-based creation: TogglClient::factory([...])
      • Configure API key via api_key parameter
      • Optional debug => true flag to see HTTP-level details
    • Command execution styles
      • Magic __call method for invoking API operations directly (with PHPDoc auto-complete)
        • Example: $toggl_client->getWorkspaces([]);
      • Explicit command objects via getCommand()
        • Example: $command = $toggl_client->getCommand('GetWorkspaces', []);
        • Manual prepare() and execute() control
        • Access raw response via $response['data']
    • Workspace, project, client, task, tag & time entry operations
      • Endpoints for managing:
        • Clients
        • Projects
        • Project users
        • Tags
        • Tasks
        • Time entries
        • Workspaces and organizations
      • New endpoints introduced in v9 layer:
        • ArchiveClient
        • RestoreClient
    • API v9-specific parameter handling
      • Many endpoints now require workspace_id (for example: CreateClient, GetClient, CreateProject, StartTimeEntry, UpdateTimeEntry, etc.)
      • Certain endpoints additionally require project_id (for example: CreateTask, GetTask, UpdateTask, DeleteTask, etc.)
      • GetProjects now uses workspace_id instead of id
      • GetProjectUsers now expects workspace_id instead of project_id
      • Endpoint rename for closer alignment with Toggl docs:
        • InviteWorkspaceUser → InviteOrganizationUser
      • Deprecated/removed endpoints:
        • GetWorkspaceWorkspaceUsers
        • GetWorkspaceProjects (replaced by GetProjects)
    • Discoverability & examples
      • services.json describes available methods and parameters
      • Example scripts provided in an examples directory
      • Example API key configuration via apikey.php
    • Development roadmap
      • Planned: more examples, tests, and response models
      • Open to community contributions

    Installation

    Install via Composer:

    composer require ajt/guzzle-toggl
    

    Usage

    Basic client setup

    <?php
    
    require __DIR__.'/../vendor/autoload.php';
    
    use AJT\Toggl\TogglClient;
    
    $toggl_token  = ''; // Fill in your API token
    $toggl_client = TogglClient::factory(['api_key' => $toggl_token]);
    

    Enable debug output:

    $toggl_client = TogglClient::factory([
        'api_key' => $toggl_token,
        'debug'   => true,
    ]);
    

    Calling API methods via __call

    use AJT\Toggl\TogglClient;
    
    $toggl_client = TogglClient::factory(['api_key' => $toggl_token]);
    
    $workspaces = $toggl_client->getWorkspaces([]);
    
    foreach ($workspaces as $workspace) {
        $id = $workspace['id'];
        echo $workspace['name']."\n";
    }
    

    Using getCommand directly

    use AJT\Toggl\TogglClient;
    
    $toggl_client = TogglClient::factory(['api_key' => $toggl_token]);
    
    $command = $toggl_client->getCommand('GetWorkspaces', []);
    $command->prepare();
    $response   = $command->execute();
    $workspaces = $response['data'];
    
    foreach ($workspaces as $workspace) {
        $id = $workspace['id'];
        echo $workspace['name']."\n";
    }
    

    Examples

    • Copy apikey-dist.php to apikey.php in the project root and add your Toggl API key.
    • Run the example scripts provided in the examples directory.
    • Refer to services.json to see the complete list of available API methods and their parameters.

    Pricing

    Not specified in the project documentation. This is an open-source PHP client; licensing and costs, if any, should be verified on the GitHub repository.

    설문조사

    더 불러오는 중......

    정보

    웹사이트github.com
    게시일Dec 24, 2025

    카테고리

    1 항목
    Others

    Similar Products

    6 result(s)
    chronicl

    A graphical Python utility for visualizing historical Toggl time-tracking data, helping users explore and analyze how their time is spent over time.

    gtoggl

    A Go (Golang) wrapper for Toggl API v8 that enables Go applications and tools to interact with Toggl’s time-tracking endpoints.

    Ixudra Toggl (Laravel PHP library)

    A Laravel-focused PHP library for Toggl API v8 that simplifies integrating Toggl time-tracking capabilities into Laravel applications.

    JToggl

    A Java wrapper for the Toggl time-tracking API v8, providing an object-oriented interface for integrating Toggl time tracking into Java applications.

    Morning Train Toggl API (PHP classes)

    A set of PHP classes for interacting with the Toggl API v8, based on Guzzle 6, providing a structured way to integrate Toggl time-tracking into PHP projects.

    node-toggl-api

    A Node.js library for the Toggl API v8 that provides a programmatic interface for integrating Toggl time tracking into JavaScript/Node applications.

    Decorative pattern
    구축 도구
    Ever Works
    Ever Works

    연락하기

    소식 받기

    최신 업데이트와 독점 콘텐츠를 이메일로 받아보세요.

    제품

    • 컬렉션
    • 카테고리
    • 태그
    • 가격
    • 도움말

    클라이언트

    • 로그인
    • 등록
    • 비밀번호를 잊으셨나요?

    회사

    • 회사 소개
    • 관리자
    • 사이트맵

    리소스

    • 블로그
    • 제출
    • API 문서
    • 서비스 약관
    • 개인정보처리방침
    • 쿠키
    모든 제품명, 로고, 브랜드는 각 소유자의 자산입니다. 이 저장소, 관련 저장소 및 관련 웹사이트에서 사용된 모든 회사, 제품 및 서비스 이름은 식별 목적으로만 사용됩니다. 이러한 이름, 로고 및 브랜드의 사용은 보증, 제휴 또는 후원을 의미하지 않습니다. 이 디렉토리에는 인공지능이 생성한 콘텐츠가 포함될 수 있습니다.
    Copyright © 2025 Ever. 모든 권리 보유.·서비스 약관·개인정보처리방침·쿠키