{"id":32521543,"url":"https://github.com/leafsphp/seedling","last_synced_at":"2026-01-20T16:29:58.479Z","repository":{"id":317445704,"uuid":"1065806054","full_name":"leafsphp/seedling","owner":"leafsphp","description":"🪴 Lightweight console application framework","archived":false,"fork":false,"pushed_at":"2025-10-23T18:06:18.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T02:56:20.729Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafsphp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"leaf","github":"leafsphp"}},"created_at":"2025-09-28T13:18:51.000Z","updated_at":"2025-10-23T18:03:06.000Z","dependencies_parsed_at":"2025-09-30T23:36:35.998Z","dependency_job_id":"47f978ca-a4ac-4daa-a8b3-db938e9fc827","html_url":"https://github.com/leafsphp/seedling","commit_stats":null,"previous_names":["leafsphp/seedling"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/leafsphp/seedling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fseedling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fseedling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fseedling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fseedling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafsphp","download_url":"https://codeload.github.com/leafsphp/seedling/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Fseedling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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":[],"created_at":"2025-10-28T06:29:33.993Z","updated_at":"2026-01-20T16:29:58.456Z","avatar_url":"https://github.com/leafsphp.png","language":"PHP","readme":"\u003c!-- markdownlint-disable no-inline-html --\u003e\n\u003cp align=\"center\"\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/3a50d848-4290-4a46-8ab1-bc0a148da375\" height=\"100\"/\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eSeedling\u003c/h1\u003e\n\n[![Latest Stable Version](https://poser.pugx.org/leafs/seedling/v/stable)](https://packagist.org/packages/leafs/seedling)\n[![Total Downloads](https://poser.pugx.org/leafs/seedling/downloads)](https://packagist.org/packages/leafs/seedling)\n[![License](https://poser.pugx.org/leafs/seedling/license)](https://packagist.org/packages/leafs/seedling)\n\nSeedling is a lightweight PHP micro-framework for building CLI apps in minutes. It's built on top of Leaf Sprout and provides a simple and elegant syntax for defining commands, interacting with users, and handling input and output.\n\n## 📦 Setting Up\n\nYou can create a seedling project using the Leaf CLI\n\n```bash\nleaf create my-seedling-app --console\n```\n\nOr with composer\n\n```bash\ncomposer create-project leafs/seedling my-seedling-app\n```\n\nOnce installed, Seedling will automatically configure itself, so you can type out `php leaf` to run your app.\n\n## Quick Start\n\nIn development, you can always access your commands as well as some built-in seedling commands by running\n\n```bash\nphp leaf\n```\n\nBut once you publish your package to composer, your users will be able to run your app using the name of the file in the `bin` directory. For example, if your file is named `greeter`, they can run\n\n```bash\n./vendor/bin/greeter\n```\n\nOr if installed globally\n\n```bash\ngreeter\n```\n\n## Creating Commands\n\nYou can create your own commands by using the `g:command` command. For example, to create a `greet` command, you can run\n\n```bash\nphp leaf g:command greet\n```\n\nThis will create a new command in the `app/console` directory as `GreetCommand.php`, which will have some boilerplate code to get you started.\n\n```php\n\u003c?php\n\nnamespace App\\Console;\n\nuse Leaf\\Sprout\\Command;\n\nclass GreetCommand extends Command\n{\n    protected $signature = 'greet\n        {name : The name of the person}\n        {--greeting=Hello : The greeting to use}';\n    protected $description = 'An example command that greets a person with a specified greeting';\n    protected $help = 'This command allows you to greet a person with a custom greeting.';\n\n    protected function handle(): int\n    {\n        $name = $this-\u003eargument('name');\n        $greeting = $this-\u003eoption('greeting');\n\n        $this-\u003einfo(\"$greeting, $name!\");\n\n        return 0;\n    }\n}\n```\n\nYou can then run your command using\n\n```bash\nphp leaf greet John --greeting Hi\n```\n","funding_links":["https://opencollective.com/leaf","https://github.com/sponsors/leafsphp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Fseedling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafsphp%2Fseedling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Fseedling/lists"}