fluid-project / hearth
Simple starter kit for the Laravel framework.
Installs: 5 887
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 8
Forks: 4
Open Issues: 11
Requires
- php: ^8.1
- chinleung/laravel-locales: ^2.0
- chinleung/laravel-multilingual-routes: ^4.0
- codezero/laravel-unique-translation: ^4.0
- commerceguys/addressing: ^2.0
- commerceguys/intl: ^2.0
- laravel/fortify: ^1.10
- laravel/framework: ^10.0
- livewire/livewire: ^2.0|^3.0
- shiftonelabs/laravel-cascade-deletes: ^2.0
- spatie/laravel-flash: ^1.9
- spatie/laravel-google-fonts: ^1.1
- spatie/laravel-package-tools: ^1.11
- spatie/laravel-sluggable: ^3.3
- spatie/laravel-translatable: ^6.0
Requires (Dev)
- laravel/pint: ^1.1
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.6
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.21
- spatie/laravel-ray: ^1.26
Suggests
- nunomaduro/larastan: The included phpstan configuration requires Larastan
- dev-main
- 4.1.0
- 4.0.0
- 3.0.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.1
- 1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-laravel-11
- dev-renovate/laravel-framework-11.x
- dev-renovate/pestphp-pest-3.x
- dev-renovate/orchestra-testbench-9.x
- dev-renovate/nunomaduro-collision-8.x
- dev-feat/drop-8.1
- dev-renovate/stefanzweifel-git-auto-commit-action-5.x
- dev-renovate/google-github-actions-release-please-action-4.x
- dev-renovate/codecov-codecov-action-4.x
- dev-release-please--branches--main--components--Hearth
- dev-greatislander-patch-1
- dev-renovate/actions-cache-4.x
- dev-renovate/major-github-artifact-actions
- dev-renovate/mysql-9.x
- dev-fix/with-all-dependencies
- dev-renovate/pascalgn-automerge-action-0.x
- dev-feat/renovate
- dev-dependabot/github_actions/google-github-actions/release-please-action-4
- dev-dependabot/github_actions/actions/upload-artifact-4
- dev-dependabot/github_actions/actions/download-artifact-4
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5
This package is auto-updated.
Last update: 2024-10-25 01:13:51 UTC
README
A simple starter kit for the Laravel framework.
Hearth is a simple starter kit for the Laravel framework. It provides a few things out of the box:
- A user model with login, registration, email verification
- Optional two-factor authentication support for users.
- An organization model.
- A membership model which reflects users' roles within organizations.
- An invitation model which allows users to be invited to join organizations.
- A resource model supporting creation of and access to a library of open educational resources in a wide range of formats.
- Multilingual support, including localized routes.
- Bare bones views which can be published and customized as needed.
Installation
Hearth requires PHP >= 8.2 and Laravel >= 10.
You may use Composer to install Hearth into your new Laravel project:
composer require fluid-project/hearth
Note: attempting to install Hearth into an existing Laravel application will result in unexpected behaviour.
After installing the Hearth package, you can use the hearth:install
Artisan command to
install the Hearth scaffolding within your Laravel application:
php artisan hearth:install
After installing Hearth, you will need to install and build your NPM dependencies, run your database migrations and link public storage:
npm install php artisan migrate php artisan storage:link
Emails
In order to test emails (for example, using Mailhog with Laravel Sail),
you must update your Laravel application's .env
file's MAIL_FROM_ADDRESS
environment variable with a
properly-formatted email address. For local development, this might be noreply@hearth.test
(assuming your local
application is accessible at http://hearth.test
).
Usage
TODO.
Formatting
To format your code using Laravel Pint, you can run:
composer format
This should be done prior to each commit, or at least prior to opening a pull request.
Testing
Prior to testing, you will need to create a MySQL or MariaDB database for testing with credentials which match those in phpunit.xml.dist
. Then run:
composer test
You can get code coverage results if XDebug is installed by running:
composer test-coverage
To test the code located in the stubs
directory you'll need to install Hearth into a Laravel instance and
run the tests from there.
Analysis/Linting
The code should pass level 5 testing.
composer analyze
To analyze the code located in the stubs
directory you'll need to install Hearth into a Laravel instance
and run the analysis from there. The phpstan configuration is provided as part of the install, but
Larastan will need to be manually installed.
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 BSD 3-Clause License. Please see License File for more information.
Third Party Software in Hearth
Hearth is based on other publicly available software, categorized by license: