giorgiopogliani / craftcms-starter-template
Craft CMS Template
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 2
Open Issues: 2
Language:Twig
Requires
- php: ^7.4|^8.0
- ext-json: *
- craftcms/cms: ^3.7
- craftcms/redactor: 2.8.7
- ether/seo: 3.7.3
- nystudio107/craft-vite: ^1.0
- pennebaker/craft-architect: 2.4.2
- performing/twig-components: ^0.5.0
- sebastianlenz/linkfield: 1.0.25
- vlucas/phpdotenv: ^3.4.0
Requires (Dev)
- deployer/deployer: ^7.0
- yiisoft/yii2-shell: ^2.0.3
This package is auto-updated.
Last update: 2024-12-06 05:06:54 UTC
README
Simple craft cms starter template fully responsive, built with Tailwind CSS, AlpineJS 3.0, ViteJS and Twig Components (like Laravel Blade Components but for twig).
Start
composer create-project giorgiopogliani/craftcms-starter-template --stability=dev website
Copmlete the setup or edit your manually update your .env
file to match your configuration. To manually install craft run this command.
php craft install/craft
After installing craft install the vite plugin, then you can install dependencies and start vite dev server.
php craft plugin/install vite
npm install
npm run dev
If your environment is dev, the vite plugin will try to access the dev server, in production the vite plugin will try to access compiled assets. More info at https://nystudio107.com/docs/vite/
Macros
- Forms
- Image
- Menu
- Image
- Pagination
- Title
Components with Twig Components
- container
- title
- button
- logo
Blocks
- text: two columns layout section
Pages
- 404
- 503
- Posts (entry, index and item)
Partials (in _layoyts)
- favicon (with asset field in globals)
- footer
- header
- seo (ether/seo plugin)
Extensions
added functions, available globally with a twig extension, you can add your own at modules/extensions\UtilsExtension.php
- is_homepage
Preview
Plugins
List of preinstalled plugins to solve common task when building a website.
craftcms/redactor
ether/seo
nystudio107/craft-vite
pennebaker/craft-architect
performing/twig-components
sebastianlenz/linkfield
Deploy
deploy.sh
Very simple script to upload all files to a remote location. It works as a wrapper of lftp or rsync. You can update the configuration at the start of the file.
deployphp/deployer
You can find a deploy.php that work with deployer, a zero down-time deploy utilty. You should update the configuration with your deatails to make it work. In the .github
folder there is also a deploy.yml to deploy with github actions.
License
The MIT License (MIT). Please see License File for more information.