{"id":15664310,"url":"https://github.com/mrcrypster/phpy","last_synced_at":"2025-05-06T19:09:27.125Z","repository":{"id":54602215,"uuid":"378083798","full_name":"mrcrypster/phpy","owner":"mrcrypster","description":"Small \u0026 efficient component-oriented file-based framework for rapid prototyping with PHP","archived":false,"fork":false,"pushed_at":"2025-01-22T10:01:01.000Z","size":167,"stargazers_count":17,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T17:18:34.710Z","etag":null,"topics":["css","fastdevelopment","javascript","performance","php","php-framework","prototyping"],"latest_commit_sha":null,"homepage":"https://phpy.dev","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/mrcrypster.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}},"created_at":"2021-06-18T08:25:25.000Z","updated_at":"2025-01-22T10:01:05.000Z","dependencies_parsed_at":"2023-01-22T03:45:44.114Z","dependency_job_id":"17349376-732a-45c4-a45a-ee06d7194169","html_url":"https://github.com/mrcrypster/phpy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcrypster%2Fphpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcrypster%2Fphpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcrypster%2Fphpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcrypster%2Fphpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrcrypster","download_url":"https://codeload.github.com/mrcrypster/phpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242798604,"owners_count":20186884,"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","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":["css","fastdevelopment","javascript","performance","php","php-framework","prototyping"],"created_at":"2024-10-03T13:42:01.842Z","updated_at":"2025-03-10T05:32:35.904Z","avatar_url":"https://github.com/mrcrypster.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPy2\n\nPHPy is built for prototyping web apps, focusing on delivering apps to end-users in as little time as possible. Creating prototypes is different from (re)building apps based on known requirements. Prototyping means not only testing ideas, but delivering changes fast in situation of rapid evolution.\n\n```php\n\u003c?php return [\n  'h1' =\u003e 'Hi',\n  'p.text' =\u003e 'This is paragraph',\n  \n  'ul#list' =\u003e [\n    ['li' =\u003e 'First item'],\n    ['li' =\u003e 'Second item']\n  ],\n  \n   'form:/signup' =\u003e [\n    'input:email' =\u003e 'test@example.com',\n    \n    \n    'select:type' =\u003e [\n      1 =\u003e 'Personal',\n      2 =\u003e 'Business'\n    ],\n    \n    'submit' =\u003e 'Sign up',\n  ],\n  \n  'a:/home' =\u003e ['Return home', ':rel' =\u003e 'nofollow']\n];\n```\n\n## Concepts\n- Use native language features.\n- Do not use big frameworks \u0026 libs.\n- The less code the better.\n- Use little or no third-party dependencies.\n- Organize endpoints based on files.\n- Move code a lot accross app.\n- Keep files small, split and nest big files.\n- Self-explanatory code instead of comments.\n\n## Features\n- PHP-based markup.\n- File based actions router.\n- Simplified syntax for most HTML elements.\n- Nest actions inside other actions.\n- Render directly to DOM elements from JS.\n- Create custom markup elements.\n- Client-server Pub/sub queue\n- Custom endpoints handlers\n- Integrated [boilerplate CSS](https://github.com/mrcrypster/cssy-src/tree/main)\n\n\n## Quick start\n```bash\ngit clone https://github.com/mrcrypster/phpy.git\nphp phpy/phpy.php init /path/to/newapp\n```\nAnd continue with the \u003ca href=\"https://phpy.dev/guide\"\u003eBuilding Web App Guide\u003c/a\u003e or \u003ca href=\"https://phpy.dev/docs\"\u003ePHPy Reference\u003c/a\u003e.\n\n## Contribute\nThis is a repository with prebuilt code.\nSources and tests are available in [phpy-src repo](https://github.com/mrcrypster/phpy-src).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcrypster%2Fphpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrcrypster%2Fphpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcrypster%2Fphpy/lists"}