Skip to content

Commit b7af662

Browse files
committed
readme updated
1 parent 4134dfa commit b7af662

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<p align="center"><img src="/art/top.gif" alt="Top in action"></p>
1+
<p align="center"><img src="/art/top.gif" alt="Real-time monitoring with Laravel Top"></p>
22

33
```php
44
php artisan top
55
```
6-
**Top** provides real-time monitoring directly from the command line for Laravel applications. It allows you to track essential metrics and the busiest routes with ease.
6+
**Top** provides real-time monitoring directly from the command line for Laravel applications.
7+
It is designed for use in production environments, allowing you to track essential metrics and the busiest routes with ease.
78

89
## Installation via Composer
910

@@ -45,7 +46,7 @@ If you want to access metrics in your application, you can use the **Top** facad
4546
use Leventcz\Top\Facades\Top;
4647
use Leventcz\Top\Data\Route;
4748

48-
$requestSummary = Top::requests();
49+
$requestSummary = Top::http();
4950
$requestSummary->averageRequestPerSecond;
5051
$requestSummary->averageMemoryUsage;
5152
$requestSummary->averageDuration;
@@ -59,7 +60,7 @@ $cacheSummary->averageHitPerSecond;
5960
$cacheSummary->averageMissPerSecond;
6061
$cacheSummary->averageWritePerSecond;
6162

62-
$topRoutes = Top::http();
63+
$topRoutes = Top::routes();
6364
$topRoutes->each(function(Route $route) {
6465
$route->uri;
6566
$route->method;
@@ -68,6 +69,9 @@ $topRoutes->each(function(Route $route) {
6869
$route->averageDuration;
6970
})
7071
```
72+
## Changelog
73+
74+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
7175

7276
## Testing
7377

0 commit comments

Comments
 (0)