{"id":36980984,"url":"https://github.com/michael-rubel/laravel-loop-functions","last_synced_at":"2026-01-13T22:50:46.924Z","repository":{"id":56900090,"uuid":"440863896","full_name":"michael-rubel/laravel-loop-functions","owner":"michael-rubel","description":"Collection of helper functions","archived":true,"fork":false,"pushed_at":"2024-03-02T06:35:39.000Z","size":86,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T21:23:44.321Z","etag":null,"topics":["helper-functions","laravel","looking-for-contributors","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-rubel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://paypal.me/observername"]}},"created_at":"2021-12-22T13:17:32.000Z","updated_at":"2024-05-07T13:43:17.000Z","dependencies_parsed_at":"2024-11-25T11:46:17.287Z","dependency_job_id":"7af4a59e-f478-4e25-97a7-3bf6e6ee9053","html_url":"https://github.com/michael-rubel/laravel-loop-functions","commit_stats":{"total_commits":105,"total_committers":2,"mean_commits":52.5,"dds":0.02857142857142858,"last_synced_commit":"6578160445cecfe509970e2253a09bf0bedc87e8"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/michael-rubel/laravel-loop-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rubel%2Flaravel-loop-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rubel%2Flaravel-loop-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rubel%2Flaravel-loop-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rubel%2Flaravel-loop-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-rubel","download_url":"https://codeload.github.com/michael-rubel/laravel-loop-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rubel%2Flaravel-loop-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402169,"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":["helper-functions","laravel","looking-for-contributors","php"],"created_at":"2026-01-13T22:50:46.250Z","updated_at":"2026-01-13T22:50:46.915Z","avatar_url":"https://github.com/michael-rubel.png","language":"PHP","funding_links":["https://paypal.me/observername"],"categories":[],"sub_categories":[],"readme":"![Laravel Loop Functions](https://user-images.githubusercontent.com/37669560/197970105-a3ea9090-ebae-495b-ac13-729b0565d75a.png)\n\n# Laravel Loop Functions\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/michael-rubel/laravel-loop-functions.svg?style=flat-square\u0026logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-loop-functions)\n[![Total Downloads](https://img.shields.io/packagist/dt/michael-rubel/laravel-loop-functions.svg?style=flat-square\u0026logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-loop-functions)\n[![Code Quality](https://img.shields.io/scrutinizer/quality/g/michael-rubel/laravel-loop-functions.svg?style=flat-square\u0026logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-loop-functions/?branch=main)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/michael-rubel/laravel-loop-functions.svg?style=flat-square\u0026logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-loop-functions/?branch=main)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/michael-rubel/laravel-loop-functions/run-tests.yml?branch=main\u0026style=flat-square\u0026label=tests\u0026logo=github)](https://github.com/michael-rubel/laravel-loop-functions/actions)\n[![PHPStan](https://img.shields.io/github/actions/workflow/status/michael-rubel/laravel-loop-functions/phpstan.yml?branch=main\u0026style=flat-square\u0026label=larastan\u0026logo=laravel)](https://github.com/michael-rubel/laravel-loop-functions/actions)\n\nThe package provides the collection of methods to loop over your data.\n\nThe package requires `PHP 8` or higher and `Laravel 9` or higher.\n\n## #StandWithUkraine\n[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)\n\n## Installation\nInstall the package using composer:\n```bash\ncomposer require michael-rubel/laravel-loop-functions\n```\n\n## Usage\n```php\nuse LoopFunctions;\n```\n\n#### Assign Eloquent model attributes to class properties:\n```php\n$this-\u003epropertiesFrom($model);\n```\n\n#### Assign array key values to class properties:\n```php\n$this-\u003epropertiesFrom($array);\n```\n\nIf you want to use dynamic properties, adjust the `dynamic_properties` key in the config and add the following trait if your class is not already implementing the `get/set` magic methods:\n```php\nuse WithDynamicProperties;\n```\n\n`Note: if you use the Livewire components, it already has similar definitions under the hood.`\n\n#### Dump class properties:\n```php\n$this-\u003edumpProperties();\n```\n\n## Ignored property names\nBy default, the package ignores `id` and `password` properties to avoid conflicts in Livewire/auth components.\nYou can customize the ignore list by editing the config.\n\n```bash\nphp artisan vendor:publish --tag=\"loop-functions-config\"\n```\n\n## Logging\nThe functions don't throw an exception in case of failed assignment (e.g. type incompatibility) but log such an event.\nYou can disable exception logging if you wish so in the config.\n\n## Testing\n```bash\ncomposer test\n```\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rubel%2Flaravel-loop-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-rubel%2Flaravel-loop-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rubel%2Flaravel-loop-functions/lists"}