2017 © Pedro Peláez
 

library clockwork

php dev tools integrated to your browser

image

itsgoingd/clockwork

php dev tools integrated to your browser

  • PHP
  • 48 Dependents
  • 1 Suggesters
  • 131 Forks
  • 23 Open issues
  • 70 Versions
  • 8 % Grown

The README.md

, (*1)

Clockwork is a development tool for PHP available right in your browser. Clockwork gives you an insight into your application runtime - including request data, performance metrics, log entries, database queries, cache queries, redis commands, dispatched events, queued jobs, rendered views and more - for HTTP requests, commands, queue jobs and tests., (*2)

This repository contains the server-side component of Clockwork., (*3)

Check out on the Clockwork website for details., (*4)

, (*5)

Installation

Install the Clockwork library via Composer., (*6)

composer require itsgoingd/clockwork

Congratulations, you are done! To enable more features like commands or queue jobs profiling, publish the configuration file via the vendor:publish Artisan command., (*7)

Note: If you are using the Laravel route cache, you will need to refresh it using the route:cache Artisan command., (*8)

Read full installation instructions on the Clockwork website., (*9)

Features

Collecting data

The Clockwork server-side component collects and stores data about your application., (*10)

Clockwork is only active when your app is in debug mode by default. You can choose to explicitly enable or disable Clockwork, or even set Clockwork to always collect data without exposing them for further analysis., (*11)

We collect a whole bunch of useful data by default, but you can enable more features or disable features you don't need in the config file., (*12)

Some features might allow for advanced options, eg. for database queries you can set a slow query threshold or enable detecting of duplicate (N+1) queries. Check out the config file to see all what Clockwork can do., (*13)

There are several options that allow you to choose for which requests Clockwork is active., (*14)

On-demand mode will collect data only when Clockwork app is open. You can even specify a secret to be set in the app settings to collect request. Errors only will record only requests ending with 4xx and 5xx responses. Slow only will collect only requests with responses above the set slow threshold. You can also filter the collected and recorded requests by a custom closure. CORS pre-flight requests will not be collected by default., (*15)

New in Clockwork 4.1, artisan commands, queue jobs and tests can now also be collected, you need to enable this in the config file., (*16)

Clockwork also collects stack traces for data like log messages or database queries. Last 10 frames of the trace are collected by default. You can change the frames limit or disable this feature in the configuration file., (*17)

Viewing data

Web interface

Visit /clockwork route to view and interact with the collected data., (*18)

The app will show all executed requests, which is useful when the request is not made by browser, but for example a mobile application you are developing an API for., (*19)

Browser extension

A browser dev tools extension is also available for Chrome and Firefox:, (*20)

Toolbar

Clockwork now gives you an option to show basic request information in the form of a toolbar in your app., (*21)

The toolbar is fully rendered client-side and requires installing a tiny javascript library., (*22)

Learn more on the Clockwork website., (*23)

Logging

You can log any variable via the clock() helper, from a simple string to an array or object, even multiple values:, (*24)

clock(User::first(), auth()->user(), $username)

The clock() helper function returns it's first argument, so you can easily add inline debugging statements to your code:, (*25)

User::create(clock($request->all()))

If you want to specify a log level, you can use the long-form call:, (*26)

clock()->info("User {$username} logged in!")

Timeline

Timeline gives you a visual representation of your application runtime., (*27)

To add an event to the timeline - start it with a description, execute the tracked code and finish the event. A fluent api is available to further configure the event., (*28)

// using timeline api with begin/end and fluent configuration
clock()->event('Importing tweets')->color('purple')->begin();
    ...
clock()->event('Importing tweets')->end();

Alternatively you can execute the tracked code block as a closure. You can also choose to use an array based configuration instead of the fluent api., (*29)

// using timeline api with run and array-based configuration
clock()->event('Updating cache', [ 'color' => 'green' ])->run(function () {
    ...
});

Read more about available features on the Clockwork website., (*30)

, (*31)

The Versions

30/07 2018

dev-master

9999999-dev https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

20/07 2018

dev-xdebug-support

dev-xdebug-support https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

12/07 2018

dev-resolve-stack-trace-view-names

dev-resolve-stack-trace-view-names https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

12/07 2018

dev-serialization-rework

dev-serialization-rework https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

15/06 2018

dev-symfony-support

dev-symfony-support https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

07/06 2018

v2.x-dev

2.9999999.9999999.9999999-dev https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

03/06 2018

dev-user-data

dev-user-data https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

24/04 2018

v2.2.5

2.2.5.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

11/04 2018

dev-web-ui-dark-theme

dev-web-ui-dark-theme https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

04/04 2018

dev-authentication

dev-authentication https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

31/03 2018

v2.2.4

2.2.4.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

27/03 2018

dev-stack-traces

dev-stack-traces https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

21/03 2018

dev-subrequests

dev-subrequests https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

14/03 2018

v2.2.3

2.2.3.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

13/03 2018

v2.2.2

2.2.2.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

09/03 2018

v2.2.1

2.2.1.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

08/03 2018

v2.2

2.2.0.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

26/02 2018

v2.1.1

2.1.1.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

26/02 2018

v2.1

2.1.0.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

12/12 2017

v2.0.4

2.0.4.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

12/12 2017

dev-require-php-55

dev-require-php-55 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

12/12 2017

dev-drop-laravel-4-support

dev-drop-laravel-4-support https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

05/10 2017

v2.0.3

2.0.3.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

03/10 2017

v2.0.2

2.0.2.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

29/09 2017

v2.0.1

2.0.1.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

29/09 2017

v2.0

2.0.0.0 https://underground.works/clockwork

php dev tools integrated to your browser

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

29/09 2017

dev-tweak-request-id-format

dev-tweak-request-id-format https://underground.works/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel lumen logging slim debugging profiling devtools

15/09 2017

v1.x-dev

1.9999999.9999999.9999999-dev http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

15/09 2017

v1.14.5

1.14.5.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

13/09 2017

v1.14.4

1.14.4.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

01/09 2017

dev-web-ui

dev-web-ui http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

30/08 2017

v1.14.3

1.14.3.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

18/07 2017

dev-metadata-expiration

dev-metadata-expiration http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

17/07 2017

dev-add-laravel-events-data-source

dev-add-laravel-events-data-source http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

14/07 2017

dev-disable-in-console-by-default

dev-disable-in-console-by-default http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

28/06 2017

dev-fix-sqlstorage-postgresql-compatibility

dev-fix-sqlstorage-postgresql-compatibility http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

01/06 2017

dev-laravel-automatically-push-middleware

dev-laravel-automatically-push-middleware http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

01/06 2017

dev-add-support-for-laravel-package-auto-discovery

dev-add-support-for-laravel-package-auto-discovery http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

31/05 2017

v1.14.2

1.14.2.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

25/05 2017

dev-storage-api-rework

dev-storage-api-rework http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

10/05 2017

dev-rework-code-style-drop-php5-support

dev-rework-code-style-drop-php5-support http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

04/05 2017

v1.14

1.14.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

04/05 2017

dev-improve-doctrine-bindings-preparation

dev-improve-doctrine-bindings-preparation http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

03/05 2017

dev-server-timing-support-tweaks

dev-server-timing-support-tweaks http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

03/05 2017

dev-fix-collecting-queries-when-using-odbc

dev-fix-collecting-queries-when-using-odbc http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

12/03 2017

dev-add-cache-queries-support

dev-add-cache-queries-support http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

25/01 2017

v1.13.1

1.13.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

24/01 2017

v1.13

1.13.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

18/06 2016

v1.12

1.12.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

19/05 2016

v1.11.2

1.11.2.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

17/03 2016

v1.11.1

1.11.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

23/02 2016

v1.11

1.11.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

07/01 2016

v1.10.1

1.10.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

23/12 2015

v1.10

1.10.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

01/09 2015

v1.9

1.9.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

06/07 2015

v1.8.1

1.8.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

03/07 2015

v1.8

1.8.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

04/02 2015

v1.7

1.7.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

25/09 2014

v1.6

1.6.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

14/02 2014

v1.5

1.5.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

22/01 2014

v1.4.4

1.4.4.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

14/01 2014

v1.4.3

1.4.3.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

13/01 2014

v1.4.2

1.4.2.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

13/01 2014

v1.4.1

1.4.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

12/01 2014

v1.4

1.4.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

20/12 2013

v1.3

1.3.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

 

laravel logging debugging profiling

05/12 2013

v1.2

1.2.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

logging debugging profiling

27/09 2013

v1.1

1.1.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

logging debugging profiling

10/07 2013

v0.9.1

0.9.1.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

logging debugging profiling

24/06 2013

v0.9.0

0.9.0.0 http://github.com/itsgoingd/clockwork

Server-side component of Clockwork, a Chrome extension for PHP development

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

logging debugging profiling