{"id":41006746,"url":"https://github.com/benjaminhaeberli/benjaminhaeberli.ch","last_synced_at":"2026-01-22T08:40:38.755Z","repository":{"id":167582311,"uuid":"537643861","full_name":"benjaminhaeberli/benjaminhaeberli.ch","owner":"benjaminhaeberli","description":"🥳 Personal website built with Kirby CMS and designed by myself","archived":false,"fork":false,"pushed_at":"2025-05-16T17:24:21.000Z","size":82381,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T18:29:51.514Z","etag":null,"topics":["blog","ecology","efficiency","html","javascript","kirby","php","portfolio","scss","sustainability","website"],"latest_commit_sha":null,"homepage":"https://benjaminhaeberli.ch","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjaminhaeberli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"BENJAMINHAEBERLI"}},"created_at":"2022-09-16T23:07:17.000Z","updated_at":"2025-05-16T17:24:29.000Z","dependencies_parsed_at":"2025-05-16T18:36:33.316Z","dependency_job_id":null,"html_url":"https://github.com/benjaminhaeberli/benjaminhaeberli.ch","commit_stats":{"total_commits":178,"total_committers":4,"mean_commits":44.5,"dds":0.1853932584269663,"last_synced_commit":"a623d091504263ee52e01003f8a3018caeea119e"},"previous_names":["benjaminhaeberli/benjaminhaeberli.ch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benjaminhaeberli/benjaminhaeberli.ch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhaeberli%2Fbenjaminhaeberli.ch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhaeberli%2Fbenjaminhaeberli.ch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhaeberli%2Fbenjaminhaeberli.ch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhaeberli%2Fbenjaminhaeberli.ch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjaminhaeberli","download_url":"https://codeload.github.com/benjaminhaeberli/benjaminhaeberli.ch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhaeberli%2Fbenjaminhaeberli.ch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28659518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blog","ecology","efficiency","html","javascript","kirby","php","portfolio","scss","sustainability","website"],"created_at":"2026-01-22T08:40:38.707Z","updated_at":"2026-01-22T08:40:38.749Z","avatar_url":"https://github.com/benjaminhaeberli.png","language":"PHP","funding_links":["https://github.com/sponsors/BENJAMINHAEBERLI"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n \u003cp\u003e\u003cimg src=\"./thumbnail.png\" width=\"800px\" alt=\"Black and white photo of Benjamin Haeberli working on a computer.\"\u003e\u003c/p\u003e\n\n**Personal website built with [Kirby CMS](https://getkirby.com/) and designed by myself 🥳**\n\n[![License GPL v3](https://img.shields.io/badge/license-AGPLv3-brightgreen.svg?color=192433)](./LICENSE)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/benjaminhaeberli/benjaminhaeberli.ch?color=192433)](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/commits/main)\n[![GitHub Language](https://img.shields.io/github/languages/top/benjaminhaeberli/benjaminhaeberli.ch?color=192433)](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/search?l=php)\n[![GitHub Stars](https://img.shields.io/github/stars/benjaminhaeberli/benjaminhaeberli.ch?color=192433)](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/stargazers)\n[![Tests](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/actions/workflows/tests.yml/badge.svg)](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/actions/workflows/tests.yml)\n[![SSH deploy 🚀](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/actions/workflows/ssh-deploy.yml/badge.svg)](https://github.com/benjaminhaeberli/benjaminhaeberli.ch/actions/workflows/ssh-deploy.yml)\n\n \u003c/div\u003e\n\n## Getting started 🔎\n\n### Requirements\n\n- [PHP](https://secure.php.net/manual/en/install.php)\n- [Composer](https://getcomposer.org/download/)\n- [Node.js](http://nodejs.org/)\n- [NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)\n\n### Installation\n\n```bash\ncomposer install\nnpm install\nnpm run watch\ncomposer serve\n```\n\nMore details on [getkirby.com](https://getkirby.com/docs/guide/quickstart)\n\n### Code quality\n\n- `composer pint`\n- `composer test`\n- `npm run prettier`\n\nMore details in [composer.json](./composer.json) and [package.json](./package.json)\n\n## CI/CD 🧙‍♂️\n\n\u003e Powered by GitHub Actions\n\n### Deployment using FTP\n\nThe `main.yml` workflow in `.github\\workflows` allow to deploy the theme using FTP. It upload only modified files and install PHP dependecies using `composer install`.\n\nTo use it, you need to configure those [Action secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) :\n\n| Name           | Value (example)         |\n| -------------- | ----------------------- |\n| `SSH_HOST`     | XXXX.ftp.infomaniak.com |\n| `SSH_USERNAME` | nice_username           |\n| `SSH_PASSWORD` | very_strong_password    |\n| `SSH_DIR`      | sites/exports.nanou.ch/ |\n\nAn [Deploy key](https://docs.github.com/fr/authentication/connecting-to-github-with-ssh/managing-deploy-keys) needs to be created on the server, without passphrase :\n\n```bash\ncd ~/.ssh/\neval \"$(ssh-agent -s)\"\nssh-keygen -t ecdsa -b 521 -C \"admin@benjaminhaeberli.ch\"\nssh-add ~/.ssh/id_portfolio\n```\n\nAnd complete `./.ssh/known_hosts` with [GitHub's SSH key fingerprints](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints)\n\n```plaintext\ngithub.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\ngithub.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=\ngithub.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=\n```\n\nBe sure that PHP version ([see Infomaniak docs](https://www.infomaniak.com/fr/support/faq/2108/modifier-la-version-de-php-utilisee-en-cli-via-ssh)) is the same as required in `composer.json` ⚠️\n\nConfig files `./.bashrc` and `.profile` must also define the same PHP version :\n\n```bash\nexport PATH=/opt/php8.1/bin:$PATH\n```\n\n## Directory structure 📁\n\n- `content/` - Content of the application (Kirby)\n- `kirby/` - Kirby CMS code - _Managed by Composer_ (Kirby)\n- `media/` - Public images and thumbnails, plugin and panel assets - _Managed by Kirby_ (Kirby)\n- `public/` - Static images + processed assets generated by Vite (Vite)\n- `resources/` - JavaScript and CSS files (sources)\n- `site/` - Core of the application : templates, configuration, plugins and blueprints (Kirby)\n- `src/` - Custom classes for the application (PHP)\n\n## Stack 🧠\n\n### Production\n\n- [Kirby](https://getkirby.com/) → CMS\n\n#### Kirby Plugins\n\n- [Static Cache by Kirby](https://github.com/getkirby/staticache) → Static Cache\n- [Boost by Bnomei](https://github.com/bnomei/kirby3-boost/tree/main) → Cache Boost\n- [SQLite Cache Driver by Bnomei](https://github.com/bnomei/kirby3-sqlite-cachedriver) → SQLite Cache Driver\n\n### Development\n\n- [PHPStan](https://phpstan.org/) → PHP Static Analysis tool\n- [Laravel/Pint](https://github.com/laravel/pint) → Opinionated PHP code style fixer for minimalists built on top of [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)\n- [Prettier](https://prettier.io/) → Opinionated code formatter\n\n## Documentation 📒\n\n- [GitMoji](https://gitmoji.dev/) → Emoji guide for GIT commit messages\n\n### Useful articles\n\n- [Kirby : passing variables to snippets](https://getkirby.com/docs/guide/templates/snippets#passing-variables-to-snippets)\n- [Where should you put logic code in Kirby CMS? - fvsch.com](https://fvsch.com/kirby-logic)\n- [PHP code typing with Kirby CMS- fvsch.com](https://fvsch.com/kirby-typing)\n- [Tailwind : customizing colors](https://tailwindcss.com/docs/customizing-colors)\n- [Tailwind default config](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js)\n\n\u003cdiv align=\"center\"\u003e\n\n**This work is licensed under [GNU Affero General Public License v3.0](./LICENSE)**\u003cbr\u003e\nKirby CMS is proprietary and you need to [buy a license](https://getkirby.com/buy) to use it in production.\u003cbr\u003e\nOthers dependencies are under MIT, BSD-3-Clause and LGPL-2.1-only license.\u003cbr\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminhaeberli%2Fbenjaminhaeberli.ch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminhaeberli%2Fbenjaminhaeberli.ch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminhaeberli%2Fbenjaminhaeberli.ch/lists"}