Download the PHP package cauriland/foundation without Composer
On this page you can find all versions of the php package cauriland/foundation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cauriland/foundation
More information about cauriland/foundation
Files in cauriland/foundation
Package foundation
Short Description User-Interface Scaffolding for Laravel. Powered by TailwindCSS.
License MIT
Informations about the package foundation
Laravel Foundation
Scaffolding for Laravel. Powered by TailwindCSS and Livewire.
List of the available components
Prerequisites
Since this package relies on a few 3rd party packages, you will need to have the following installed and configured in your project:
Installation
Require with composer: composer require cauriland/foundation
Usage
- CommonMark
- Documentation
- Fortify
- Hermes
- Stan
- UI
Examples
- CommonMark
- Fortify
- Hermes
- UI
Composer Scripts
Add those scripts to composer.json
Working on Components Locally
This package contains a lot of frontend components, but no frontend views itself. So when you need to work on it, you rely on the frontend from another project. Usually this can be done by having composer symlink this package, but in this case there is a second step required to ensure you can run yarn watch
, yarn prod
etc.
I'll get into it in detail and will use the marketsquare.io project as an example. Let's assume that both the marketsquare.io and laravel-foundation git repo's are installed in the /Users/my-user/projects/
folder on our local development machine.
Step 1 - Composer Symlink
In the composer.json
file from marketsquare.io under "repositories" add the laravel-foundation as a path:
After that run composer require cauriland/foundation --ignore-platform-reqs -W
. The laravel-foundation package is now symlinked and you can work in your IDE from within your laravel-foundation
repo.
Step 2 - Symlink node_modules
If you would run yarn watch
from within your marketsquare.io repo you'll get a lot of errors because dependencies are not smart enough to know they're in a symlinked directory.
- Delete the
node_modules
directory onlaravel-foundation
. - Symlink the
node_modules
directory from marketsquare.io to laravel-foundation by runningln -s /Users/my-user/projects/marketsquare.io/node_modules node_modules
(from within your laravel-foundation repo).
Now, when you go back to your marketsquare.io repo, you can run yarn watch
.
Don't forget to remove the symlinking after you're done.
Turn those steps into scripts
Keep in mind:
these scripts are written for Mac users. If you use another OS you may need to tweak them accordingly.
unlink:foundation
usesgit
commands to restore the current project.
To improve your workflow you can turn those steps into scripts and use them directly in your command line, like:
You can copy/paste them in your .bashrc
, .aliases
or whatever file you set up to manage your aliases.
Before jumping into the code, let me explain what you can do with them (skip to code).
For these examples we use marketsquare.io
and laravel-foundation
repos, assuming that both are installed in the same folder (/Users/my-user/projects
) on our local development machine.
symlink your current project to laravel-foundation
That's it!
The script automatically tries to guess where the laravel-foundation
repo is located and symlinks the current project to it (in this case marketsquare.io
).
If the current project and laravel-foundation
repos are not in the same folder, the script tries to move one level back (../../
) and tries again.
If laravel-foundation
is not found, the script exits and outputs an error message.
You can always specify a custom path, by passing it as an argument
remove symlink from your current project
Again, that's it!
The script looks for .symlink_foundation
temp file (created by link:foundation
), that contains the symlinked path.
If not found, it tries to guess where the laravel-foundation
repo is located and removes the symlink from the current project (in this case marketsquare.io
).
If the current project and laravel-foundation
repos are not in the same folder, the script tries to move one level back (../../
) and tries again.
If laravel-foundation
is not found, the script exits and outputs an error message.
You can always specify a custom path, by passing it as an argument
code
Scripts are self-explanatory, plus they have comments on each line 😉.
All versions of foundation with dependencies
alexbarnsley/php-html-parser Version ^3.2
calebporzio/sushi Version ^2.4
danharrin/livewire-rate-limiting Version ^0.3
elgigi/commonmark-emoji Version ^2.0
ergebnis/phpstan-rules Version ^1.0
fakerphp/faker Version ^1.16
friendsofphp/php-cs-fixer Version ^3.3
google/recaptcha Version ^1.2
graham-campbell/analyzer Version ^3.0
guzzlehttp/guzzle Version ^7.4
illuminate/bus Version ^8.73
illuminate/contracts Version ^8.73
illuminate/http Version ^8.73
illuminate/mail Version ^8.73
illuminate/support Version ^8.73
illuminate/view Version ^8.73
jasonmccreary/laravel-test-assertions Version ^2.0
jenssegers/agent Version ^2.6
johnkary/phpunit-speedtrap Version ^4.0
laravel/fortify Version ^1.8
league/commonmark Version ^2.0
livewire/livewire Version ^2.8
mockery/mockery Version ^1.4
nunomaduro/collision Version ^5.10
nunomaduro/larastan Version ^1.0
nunomaduro/laravel-mojito Version ^0.2
orchestra/testbench Version ^6.23
pestphp/pest Version ^1.21
pestphp/pest-plugin-faker Version ^1.0
pestphp/pest-plugin-laravel Version ^1.1
pestphp/pest-plugin-livewire Version ^1.0
pestphp/pest-plugin-parallel Version ^1.0
phpstan/extension-installer Version ^1.1
phpstan/phpstan Version ^1.2
phpstan/phpstan-deprecation-rules Version ^1.0
phpstan/phpstan-strict-rules Version ^1.1
phpunit/phpunit Version ^9.5
pragmarx/google2fa-laravel Version ^2.0
rector/rector Version ^0.12.19
ruafozy/mersenne-twister Version ^1.3
savvot/random Version ^0.3
spatie/laravel-flash Version ^1.8
spatie/laravel-honeypot Version ^4.0
spatie/laravel-medialibrary Version ^9.9
spatie/laravel-newsletter Version ^4.10
spatie/laravel-package-tools Version ^1.9
spatie/laravel-personal-data-export Version ^3.0
spatie/laravel-schemaless-attributes Version ^2.1
spatie/pest-plugin-snapshots Version ^1.1
spatie/regex Version ^3.1
spatie/yaml-front-matter Version ^2.0
teamtnt/laravel-scout-tntsearch-driver Version ^11.5