{"id":36978366,"url":"https://github.com/iffifan/laravel-debugbar-memory","last_synced_at":"2026-01-13T22:47:50.506Z","repository":{"id":56989207,"uuid":"225290005","full_name":"iffifan/laravel-debugbar-memory","owner":"iffifan","description":"Add detailed memory usage measurement for code blocks in laravel debugbar","archived":false,"fork":false,"pushed_at":"2023-04-18T07:19:47.000Z","size":8,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T02:47:51.540Z","etag":null,"topics":["debug","debugbar","laravel","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iffifan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-02T05:07:26.000Z","updated_at":"2023-02-24T10:07:29.000Z","dependencies_parsed_at":"2022-08-21T12:50:36.031Z","dependency_job_id":null,"html_url":"https://github.com/iffifan/laravel-debugbar-memory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iffifan/laravel-debugbar-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iffifan%2Flaravel-debugbar-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iffifan%2Flaravel-debugbar-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iffifan%2Flaravel-debugbar-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iffifan%2Flaravel-debugbar-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iffifan","download_url":"https://codeload.github.com/iffifan/laravel-debugbar-memory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iffifan%2Flaravel-debugbar-memory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","debugbar","laravel","php"],"created_at":"2026-01-13T22:47:50.393Z","updated_at":"2026-01-13T22:47:50.494Z","avatar_url":"https://github.com/iffifan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-debugbar-memory\n[![License](https://poser.pugx.org/iffifan/laravel-debugbar-memory/license)](https://packagist.org/packages/iffifan/laravel-debugbar-memory)\n\nAdd detailed memory usage measurement for code blocks in [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar)\n\n\n\n## Installation\n\nRequire this package with composer. It is recommended to only require the package for development.\n\n```shell\ncomposer require iffifan/laravel-debugbar-memory --dev\n```\n\nLaravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\nIf you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php\n\n```php\nIffifan\\MemoryDebugbar\\Providers\\MemoryDebugbarServiceProvider::class,\n```\n## Usage\n\nAfter successful installation you should see `Memory` tab in your Debugbar\n\n![Screenshot](https://i.ibb.co/hHHbnVZ/debugbar-memory.jpg)\n\n### Measuring memory usage of a code block\n\nLet's calculate memory usage of a while loop with helper methods\n\n```php\n    start_memory_measure('Some Loop');\n    $a = 0;\n    $b = 'X';\n    while ($a \u003c 10000000) {\n        $b .= 'X';\n        ++$a;\n    }\n    stop_memory_measure('Some Loop');\n```\nMemory calculation will be updated like this:\n\n![Screenshot](https://i.ibb.co/gryfYkY/debugbar-memory-code.jpg)\n\n## Disable\n\nJust add \n```php\n        'memory_details'  =\u003e false, //Display memory details\n```\nin ``config/debugbar.php``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiffifan%2Flaravel-debugbar-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiffifan%2Flaravel-debugbar-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiffifan%2Flaravel-debugbar-memory/lists"}