{"id":18555604,"url":"https://github.com/n2ref/coreui-layout-php","last_synced_at":"2026-01-20T00:39:48.659Z","repository":{"id":154051173,"uuid":"631051219","full_name":"n2ref/coreui-layout-php","owner":"n2ref","description":"Coreui layout php","archived":false,"fork":false,"pushed_at":"2024-06-22T19:43:54.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T01:18:22.822Z","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/n2ref.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":"2023-04-21T19:55:06.000Z","updated_at":"2023-04-23T12:28:58.000Z","dependencies_parsed_at":"2024-04-13T10:30:20.479Z","dependency_job_id":"061a9ef5-432c-412b-b9f6-63c8af0d0bb7","html_url":"https://github.com/n2ref/coreui-layout-php","commit_stats":null,"previous_names":["n2ref/coreui-layout-php"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-layout-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-layout-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-layout-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fcoreui-layout-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n2ref","download_url":"https://codeload.github.com/n2ref/coreui-layout-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"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":[],"created_at":"2024-11-06T21:27:17.944Z","updated_at":"2026-01-20T00:39:48.634Z","avatar_url":"https://github.com/n2ref.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoreUI layout\n\n### Composer install\n\n`composer install n2ref/coreui-layout-php`\n\n### Example usage\n\n```php\n    $layout = new \\CoreUI\\Layout('layout-id');\n    \n    $layout-\u003ejustify($layout::JASTIFY_START)\n        -\u003ealign($layout::ALIGN_START)\n        -\u003edirection($layout::DIRECTION_ROW)\n        -\u003ewrap($layout::WRAP_WRAP)\n        -\u003eoverflow($layout::OVERFLOW_AUTO)\n        -\u003eoverflowX($layout::OVERFLOW_AUTO)\n        -\u003eoverflowY($layout::OVERFLOW_AUTO)\n        -\u003ewidth(500)\n        -\u003eminWidth(400)\n        -\u003emaxWidth(600)\n        -\u003eheight(200)\n        -\u003eminHeight(100)\n        -\u003emaxHeight(300)\n        -\u003egap(15);\n        \n    $layout-\u003eaddSize($layout::SIZE_SM)\n        -\u003edirection($layout::DIRECTION_ROW)\n        -\u003ejustify($layout::JASTIFY_START)\n        -\u003ealign($layout::ALIGN_END)\n        -\u003ewrap($layout::WRAP_WRAP);\n       \n    \n    $item1 = $layout-\u003eaddItem('id-sidebar')-\u003econtent('Left')-\u003ealign($layout::ALIGN_START);\n    $item2 = $layout-\u003eaddItem('id-content')-\u003econtent('Center')-\u003efill(true);\n    $item3 = $layout-\u003eaddItem('id-right_bar')\n        -\u003econtent('Right')\n        -\u003ealign($layout::ALIGN_STRETCH)\n        -\u003eorder($layout::ORDER_0)\n        -\u003eoverflow($layout::OVERFLOW_AUTO)\n        -\u003eoverflowX($layout::OVERFLOW_AUTO)\n        -\u003eoverflowY($layout::OVERFLOW_AUTO);\n        \n    $item3-\u003eaddSize($layout::SIZE_XXL)\n        -\u003ealign($layout::ALIGN_END)\n        -\u003efill(true)\n        -\u003eorder($layout::ORDER_2);\n    \n    echo json_encode($layout-\u003etoArray());\n```\n\nOutput \n```json\n{\n    \"component\": \"coreui.layout\",\n    \"id\": \"layout-id\",\n    \"justify\": \"start\",\n    \"align\": \"start\",\n    \"direction\": \"row\",\n    \"wrap\": \"wrap\",\n    \"overflow\" : \"auto\",\n    \"overflowX\" : \"auto\",\n    \"overflowY\" : \"auto\",\n    \"width\": 500,\n    \"minWidth\": 400,\n    \"maxWidth\": 600,\n    \"height\": 200,\n    \"minHeight\": 100,\n    \"maxHeight\": 300,\n    \"gap\": 15,\n    \"sizes\": {\n      \"sm\": {\n        \"direction\": \"row\",\n        \"justify\": \"start\",\n        \"align\": \"start\",\n        \"wrap\": \"wrap\"\n      }\n    },\n    \"items\": [\n      { \"id\": \"id-sidebar\", \"content\": \"Left\",   \"align\": \"start\" },\n      { \"id\": \"id-content\", \"content\": \"Center\", \"fill\": true },\n      {\n        \"id\": \"id-right_bar\",\n        \"align\": \"stretch\",\n        \"content\": \"Right\",\n        \"order\": 0,\n        \"overflow\" : \"auto\",\n        \"overflowX\" : \"auto\",\n        \"overflowY\" : \"auto\",\n        \"sizes\": {\n          \"xxl\": {\n            \"align\": \"end\",\n            \"fill\": true,\n            \"order\": 2,\n            \"col\": 0\n          }\n        }\n      }\n    ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fcoreui-layout-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn2ref%2Fcoreui-layout-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fcoreui-layout-php/lists"}