happytodev / typhoon
Content Management with typhoon database, using TALL Stack
Fund package maintenance!
happytodev
Installs: 97
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 7
Language:CSS
Requires
- php: ^8.1
- akaunting/laravel-setting: ^1.2
- doctrine/dbal: ^3.3
- embed/embed: ^4.4
- filament/filament: ^2.0
- happytodev/filament-comments: ^0.1
- happytodev/filament-social-networks: ^0.2
- happytodev/filament-tailwind-color-picker: ^0.1
- illuminate/contracts: ^9.0
- jeffgreco13/filament-breezy: ^1.3
- league/commonmark: ^2.3
- livewire/livewire: ^2.10
- ryangjchandler/orbit: ^1.1
- spatie/filament-markdown-editor: ^1.0
- spatie/laravel-markdown: ^2.2
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
- dev-main
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- 0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.1
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5
- dev-dependabot/github_actions/actions/checkout-4
- dev-develop
- dev-dependabot/github_actions/ramsey/composer-install-2
This package is auto-updated.
Last update: 2024-11-09 11:11:50 UTC
README
Typhoon is a way to manage your content as you want. Why Typhoon ? Because he doesn't use database. It uses Orbit.
Support us
You can support the development of this open-source package here
Installation
Start with a fresh install of Laravel :
laravel new your-awesome-project-name
or
composer create-project laravel/laravel your-awesome-project-name
Enter in your project directory :
cd your-awesome-project-name
You can install the package via composer:
composer require happytodev/typhoon
As Typhoon, use filament-navigation
plugin from Ryan Chandler and as I adapted it (fork is here https://github.com/happytodev/filament-navigation) to be compliant with Orbit (also from Ryan) and as the PR is waiting approval from Ryan, you have to set an another settings before install Typhoon.
Follow these steps :
"repositories": [ { "type": "vcs", "url": "https://github.com/happytodev/filament-navigation" } ], "require": { "ryangjchandler/filament-navigation": "dev-main" }
Save the composer.json
file and run composer update
Alternatively, if you don't add above require block in your composer.json
file, you can install the package via composer:
composer require ryangjchandler/filament-navigation=dev-main
To use Orbit with filament-navigation, you have to add a key to your .env file :
FILAMENT_NAVIGATION_DB_ENGINE=orbit
Give a name to your website by adding the following key to your .env file
TYPHOONCMS_NAME="MyWebsite"
Always in your .env
file replace following :
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD=
by
DB_CONNECTION=orbit
You can now run the install script of Typhoon via Artisan :
php artisan typhoon:install
When the script ask you User model file already exists. Do you want to overwrite it? (yes/no) [no]:
you can answer yes. It will modify the default User model to adapt it to use Orbit instead classic database like for example MySQL.
Last thing, go to the content\users
folders and edit with your favorite editor the first user, usually it is the file 1.md
:
--- id: 1 name: 'John Doe' email: john@doe.com password: $2y$10$0wdxKSl7ksxk8yrTgU8!K90oLmMq2eJ20pwUBSu0ICMWpc959DpTqm is_admin: 0 created_at: 2022-05-27T18:39:22+00:00 updated_at: 2022-05-28T09:04:57+00:00 ---
modify this line is_admin: 0
to this one is_admin: true
:
--- id: 1 name: 'John Doe' email: john@doe.com password: $2y$10$0wdxKSl7ksxk8yrTgU8!K90oLmMq2eJ20pwUBSu0ICMWpc959DpTqm is_admin: true created_at: 2022-05-27T18:39:22+00:00 updated_at: 2022-05-28T09:04:57+00:00 ---
Crontabs
Typhoon has the possibity to published or unpublished posts by setting date and hour of action. It needs you configure your crontab as explained in laravel documentation.
The following must be adapted to your system, but on a classical Linux :
crontab -e
Then adding this and take care to adapt path of your Typhoon installation
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Compile assets
Only if you need to adapt assets and compile them
Install TailwindCSS :
npm install -D tailwindcss
npm install @tailwindcss/typography
Install Npm dependencies and compile assets :
npm install && npm run dev
compile tailwind asset
npx tailwindcss -i ./resources/css/app.css -o ./public/css/app.css
Updating
After you update TyhoonCms with composer update
you can launch php artisan typhoon:update
.
The script will ask you wich version you come from and adapt the update in consequence.
How to connect
Now you can connect to the backoffice, via the url of your project and adding to it /admin
How to use
Out of the box, you have this entities :
- users
- posts
- categories
- tags
- pages
- navigation
- social networks
To create a post, a category is necessary. So, your first step is to create a category, before create a post.
After installation, you have demo content with :
- an home page
- your user and one more default user john@doe.com and password : johndoesecret
- a category
- a tag
- a demo post :
yourTyphoonSite.test/posts/the-first-post-with-typhoon
- a menu
- a social network group
- a page listing all posts :
yourTyphoonSite.test/posts/
When you create a page, you can visit it with this url :
yourTyphoonSite.test/page/{slug_of_your_page}
The home page is different and is plug directly to yourTyphoonSite.test/
Knowned limitations
Don't forget : this is a beta version, please do not use it in production unless you know what you do !
Currently there is some limitations :
- In navigations, only one menu is usable with template provided and it name MUST be
main
- In Social Networks, the name of the group MUST also be
main
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Versionning
TyphoonCms developement follows the SemVer method.