Clockwork

itsgoingd/clockwork image

Clockwork stats

Downloads
12.7M
Stars
5,198
Open Issues
60
Forks
305

View on GitHub →

php dev tools in your browser

Clockwork: Laravel Development Tool

Clockwork is a comprehensive browser-based development tool for PHP, designed to provide detailed insights into your Laravel application's runtime. It captures a wide range of data including request details, performance metrics, log entries, database and cache queries, and much more across HTTP requests, commands, queue jobs, and tests.

Key Features

  • Data Collection: Automatically captures and stores crucial data when the application is in debug mode. Configurable settings allow for selective data collection based on request type, response time, and more.
  • Viewing Data:
    • Web Interface: Accessible via the /clockwork route, offering a detailed view of all requests.
    • Browser Extensions: Available for Chrome and Firefox, integrating directly into the developer tools.
    • Toolbar: Displays basic request information directly in your application, with minimal setup required.
  • Advanced Logging: Utilize the clock() helper function for in-depth logging of variables, supporting various data types and log levels.
  • Timeline: Visualize application processes and performance with start, end, and duration markers, enhancing the debugging and profiling process.

Installation

Install Clockwork with Composer:

$ composer require itsgoingd/clockwork

Post-installation, you may publish the configuration file using:

$ php artisan vendor:publish

Note: Refresh the Laravel route cache if it's in use by running php artisan route:cache.

Usage

Upon installation, Clockwork is ready to collect data for debugging and performance monitoring. Enable specific features like command or queue job profiling by adjusting the settings in the published configuration file.

For more detailed installation and configuration instructions, visit the Clockwork website.

Clockwork is a powerful ally for developers aiming to optimize and debug their applications efficiently, providing a robust suite of tools right in the browser.

itsgoingd photo

webdev underground

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Itsgoingd Clockwork Related Articles

Eloquent Performance: 4 Examples of N+1 Query Problems image

Eloquent Performance: 4 Examples of N+1 Query Problems

Read article
Output Eloquent Builder SQL to Your Favorite Debugging Tool image

Output Eloquent Builder SQL to Your Favorite Debugging Tool

Read article
Some Laravel Podcasts for your holiday break image

Some Laravel Podcasts for your holiday break

Read article
Clockwork v5.0 is released image

Clockwork v5.0 is released

Read article
Query Tracer Package image

Query Tracer Package

Read article
PHP Developer Chrome Extensions image

PHP Developer Chrome Extensions

Read article
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
LoadForge logo

LoadForge

Scalable load testing for web apps & APIs. Simulate real-world traffic and identify breaking points and performance limits with powerful, scalable load tests designed for Laravel.

LoadForge
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum