{"id":36987537,"url":"https://github.com/manojmbharadwaj/laghu","last_synced_at":"2026-01-13T23:08:00.596Z","repository":{"id":62523435,"uuid":"222049007","full_name":"manojmbharadwaj/laghu","owner":"manojmbharadwaj","description":"PHP script Migration tool for small projects. Uses SQL query instead of PHP Classes.","archived":false,"fork":false,"pushed_at":"2019-11-16T16:28:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-19T03:42:52.422Z","etag":null,"topics":["migration-tool","php","php-migration"],"latest_commit_sha":null,"homepage":null,"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/manojmbharadwaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-16T04:52:56.000Z","updated_at":"2019-11-16T16:28:26.000Z","dependencies_parsed_at":"2022-11-02T10:32:07.093Z","dependency_job_id":null,"html_url":"https://github.com/manojmbharadwaj/laghu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manojmbharadwaj/laghu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojmbharadwaj%2Flaghu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojmbharadwaj%2Flaghu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojmbharadwaj%2Flaghu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojmbharadwaj%2Flaghu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manojmbharadwaj","download_url":"https://codeload.github.com/manojmbharadwaj/laghu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojmbharadwaj%2Flaghu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["migration-tool","php","php-migration"],"created_at":"2026-01-13T23:07:59.852Z","updated_at":"2026-01-13T23:08:00.579Z","avatar_url":"https://github.com/manojmbharadwaj.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Project Intro**\n\nLaghu(Small in Kannada) Migration Tool!\n\n---\n\n## Intro\n\nLaghu is small migration tool. The flow is simple. First we will create a migration file. Add SQL to the created file. Run the migration!.\nWhen we run the migration, the tool check weather the file is all-ready migrated or not. If it is being migrated it won't run the SQL.  \nThe tool will create Migration directory, migration table(laghu_migrations) when you run the script. DO NOT CHANGE DIRECTORY NAME and TABLE NAME unlsess you change the laghu.php script as well.  \nIn small projects I found it is easier to have a migration based on raw SQL scripts than using a framework for it.\n\n## Config\nUpdate config.php with database credentials\n\n## Commands\n\n1. Create Migration:  \n    php laghu.php create [file_suffix]  \n    php laghu.php create ct-user_detail -\u003e this will create the file [timestamp]ct-user_detail in migration directory.  \n    Naming conventions (optional. Suggested for readiblity):  \n        ct -\u003e create table  \n        mt -\u003e modify table  \n        dt -\u003e SQL contains Data  \n2. Run migration  \n    php laghu.php migrate  \n    The command will run the migration outputs no. of files migrated successfully.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanojmbharadwaj%2Flaghu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanojmbharadwaj%2Flaghu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanojmbharadwaj%2Flaghu/lists"}