{"id":20012311,"url":"https://github.com/archtechx/console-log","last_synced_at":"2025-08-18T11:09:57.941Z","repository":{"id":44645012,"uuid":"325868076","full_name":"archtechx/console-log","owner":"archtechx","description":"consoleLog() for Livewire components","archived":false,"fork":false,"pushed_at":"2023-02-16T09:47:47.000Z","size":21,"stargazers_count":24,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T12:13:08.696Z","etag":null,"topics":[],"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/archtechx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"stancl"}},"created_at":"2020-12-31T20:21:17.000Z","updated_at":"2024-02-28T18:45:05.000Z","dependencies_parsed_at":"2024-11-13T07:40:24.386Z","dependency_job_id":null,"html_url":"https://github.com/archtechx/console-log","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.5294117647058824,"last_synced_commit":"729c11cf07115823134a8151f9e28c7cfb9de0cb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/archtechx/console-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archtechx%2Fconsole-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archtechx%2Fconsole-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archtechx%2Fconsole-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archtechx%2Fconsole-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archtechx","download_url":"https://codeload.github.com/archtechx/console-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archtechx%2Fconsole-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982194,"owners_count":24679447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-13T07:29:43.122Z","updated_at":"2025-08-18T11:09:57.919Z","avatar_url":"https://github.com/archtechx.png","language":"PHP","funding_links":["https://github.com/sponsors/stancl"],"categories":[],"sub_categories":[],"readme":"# console-log\n\nA tiny package that adds a `consoleLog()` method to Livewire. This method sends any data to the browser developer console.\n\n## Installation\n\nRequire the package via composer:\n\n```bash\ncomposer require leanadmin/console-log\n```\n\nAdd this to your base layout:\n\n```html\n\u003cx-lean::console-log /\u003e\n```\n\nBy default, events will only show up if your application is in the `local` environment. If you wish to change that, pass an `environment` attribute to the component:\n\n```html\n\u003cx-lean::console-log environment=\"local\" /\u003e\n\n\u003cx-lean::console-log :environment=\"['local', 'staging']\" /\u003e\n```\n\n## Usage\n\nIn any Livewire component, you can use the `consoleLog()` method to log a value (or values) to the browser console:\n\n```php\n$this-\u003econsoleLog('foo');\n$this-\u003econsoleLog($value);\n\n$this-\u003econsoleLog('foo', 'bar');\n$this-\u003econsoleLog($values);\n```\n\n## IDE support\n\nSince the package adds a macro, you will not have IDE autosuggest for the `consoleLog()` method by default.\n\nHowever, if you wish to add it, simply use the `ConsoleLog` trait:\n\n```php\nuse Lean\\ConsoleLog\\ConsoleLog;\n\nclass MyComponent extends Component\n{\n    use ConsoleLog;\n}\n```\n\nThis trait has a `@method` annotation which lets your IDE understand the method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchtechx%2Fconsole-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchtechx%2Fconsole-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchtechx%2Fconsole-log/lists"}