{"id":23869476,"url":"https://github.com/fredwu/kohana-phamlp","last_synced_at":"2026-03-06T09:32:30.305Z","repository":{"id":957868,"uuid":"743380","full_name":"fredwu/kohana-phamlp","owner":"fredwu","description":"This module is a bridge between the Kohana PHP framework (http://kohanaframework.org/) and the PHamlP library (http://code.google.com/p/phamlp/).","archived":false,"fork":false,"pushed_at":"2013-10-20T16:18:10.000Z","size":792,"stargazers_count":25,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-08T19:32:40.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://fredwu.me/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-06-27T14:35:24.000Z","updated_at":"2024-03-06T12:12:21.000Z","dependencies_parsed_at":"2022-07-06T00:00:26.177Z","dependency_job_id":null,"html_url":"https://github.com/fredwu/kohana-phamlp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fredwu/kohana-phamlp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Fkohana-phamlp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Fkohana-phamlp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Fkohana-phamlp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Fkohana-phamlp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredwu","download_url":"https://codeload.github.com/fredwu/kohana-phamlp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Fkohana-phamlp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30168984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2025-01-03T12:35:35.276Z","updated_at":"2026-03-06T09:32:30.228Z","avatar_url":"https://github.com/fredwu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdel\u003eThis project has been dropped in favor of [kohana3-haml](https://github.com/d4rky-pl/kohana3-haml).\u003c/del\u003e\nLooks like HamlPHP still needs a lot of work. Project is bringed back until bugs in HamlPHP are fixed.\n\n***\n\n# Kohana PHamlP Module\n\nThis module is a bridge between the [Kohana PHP framework](http://kohanaframework.org/) and the [PHamlP library](http://code.google.com/p/phamlp/).\n\n## Compatibility\n\nThis module is for Kohana 3.0+.\n\n## Installation\n\n* Download the source code, extract it and put it in your Kohana's modules directory.\n* Download phamlp and put it into vendor/ directory (\u003chttps://github.com/d4rky-pl/phamlp\u003e is recommended over the original version, but you can find other forks on github)\n* Enable the module in your bootstrap file (`bootstrap.php` under your `application` directory).\n* Copy and paste the configuration file (`config/phamlp.php`) to your application's config directory.\n* Make necessary changes to the configuration file to suit your needs.\n* Copy and paste the controller file (`classes/controller/haml.php`) to your controller directory if you want to customise it.\n\n## Haml\n\n### Usage\n\n#### Prerequesites\n\n* By default the view files have `.haml` as the file extension.\n\nIf you would like to take advantage of the Haml controller shipped with this module, simply:\n\n* Make sure the layout file exists (configurable by setting `$this-\u003e$template` in the controller).\n* Make sure the view files exist. View files follow the `controller_name/action_name` convention.\n\nIf you would like to take control of the view rendering yourself, you can:\n\n* Either don't inherit from `Controller_Haml`, or set `$this-\u003eauto_render` to false.\n* Call `Haml::factory()` instead of `View::factory()`, e.g. `Haml::factory($view_file, $view_data, $haml_options)`.\n\n#### Configuration Options\n\n* Default Haml options are configured in `config/phamlp.php` file - these apply to all Haml templates generated.\n* Optionally, you may set per controller or per action Haml options via `$this-\u003ehaml_options` in your controller actions. These overrides the default options.\n\n#### Assigning Variables\n\n* Assign view variables to `$this-\u003eview_data`, e.g. `$this-\u003eview_data['title'] = 'My Website';`.\n* You may use either `View::set_global()`/`View::bind_global()` or `Haml::set_global()`/`Haml::bind_global()` to set global view variables.\n* `Haml::factory()` returns a `View` object, so you may use `bind()`, `set()` and magic getter/setters on it.\n\n## Todo\n\n* Sass support.\n\n## Author\n\nCopyright (c) 2010 Fred Wu (\u003chttp://fredwu.me\u003e), released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).\n\nBrought to you by **Wuit** - \u003chttp://wuit.com\u003e.\n\nCurrently maintained by Michał Matyas (\u003chttp://github.com/d4rky-pl\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwu%2Fkohana-phamlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredwu%2Fkohana-phamlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwu%2Fkohana-phamlp/lists"}