New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClockWork to Vanilla php application #650
Comments
Hey, you can find installation instructions for vanilla apps on the Clockwork website - https://underground.works/clockwork/#docs-installation-vanilla |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to add clockwork in vanilla php application. so trying to add in a just index.php file. but it does not show any data to the browser extension or toolbar.
how to install clockwork in a vanilla php application. my code:
getMessage(); } if ($return == 0) { $statment = $myPDO->prepare($qry); $statment->execute(); } else { $start_time = microtime(true); // Record start time $statment = $myPDO->prepare($qry); $statment->execute(); $QueryArray = $statment->fetchAll(PDO::FETCH_ASSOC); $end_time = microtime(true); // Record end time $execution_time = ($end_time - $start_time); // Calculate execution time in milliseconds // Capture the SQL query data and send it to Clockwork $queryData = [ 'query' => $qry, 'bindings' => [], 'time' => $execution_time, ]; $clockwork->addDatabaseQuery($queryData); return $QueryArray; } } $users = qry("SELECT * FROM users"); ?> <title>Document</title> <script src="https://cdn.jsdelivr.net/gh/underground-works/clockwork-browser@1/dist/toolbar.js"></script> requestProcessed(); ?>The text was updated successfully, but these errors were encountered: