tempest / framework
The PHP framework that gets out of your way.
Fund package maintenance!
brendt
Installs: 956
Dependents: 1
Suggesters: 0
Security: 0
Stars: 761
Watchers: 11
Forks: 51
Open Issues: 51
Requires
- php: ^8.3
- ext-dom: *
- ext-fileinfo: *
- ext-libxml: *
- ext-mbstring: *
- ext-pdo: *
- ext-readline: *
- ext-simplexml: *
- egulias/email-validator: ^4.0.2
- giggsey/libphonenumber-for-php: ^8.13.40
- guzzlehttp/guzzle: ^7.8
- laminas/laminas-diactoros: ^3.3
- masterminds/html5: ^2.9
- monolog/monolog: ^3.7.0
- nunomaduro/collision: ^8.4
- php-http/discovery: ^1.19.2
- psr/clock: ^1.0.0
- psr/http-client: ^1.0.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0|^2.0
- psr/log: ^3.0.0
- ramsey/uuid: ^4.7
- spatie/ignition: ^1.15
- symfony/var-dumper: ^7.1
- symfony/var-exporter: ^7.1
- tempest/highlight: ^2.0
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- aidan-casey/mock-client: dev-master
- friendsofphp/php-cs-fixer: ^3.21
- guzzlehttp/psr7: ^2.6.1
- illuminate/view: ~11.7.0
- jenssegers/blade: ^2.0
- nyholm/psr7: ^1.8
- php-http/mock-client: ^1.6
- phpat/phpat: ^0.10.14
- phpstan/phpstan: ^1.10.0
- phpunit/phpunit: ^11.3.5
- rector/rector: ^1.2
- spaze/phpstan-disallowed-calls: ^3.1
- symplify/monorepo-builder: ^11.2
Replaces
- tempest/clock: 1.0-alpha1
- tempest/command-bus: 1.0-alpha1
- tempest/console: 1.0-alpha1
- tempest/container: 1.0-alpha1
- tempest/core: 1.0-alpha1
- tempest/database: 1.0-alpha1
- tempest/debug: 1.0-alpha1
- tempest/event-bus: 1.0-alpha1
- tempest/http: 1.0-alpha1
- tempest/http-client: 1.0-alpha1
- tempest/log: 1.0-alpha1
- tempest/mapper: 1.0-alpha1
- tempest/reflection: 1.0-alpha1
- tempest/support: 1.0-alpha1
- tempest/validation: 1.0-alpha1
- tempest/view: 1.0-alpha1
- dev-main
- 1.0-alpha1
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-add-filesystem
- dev-view-renderer-bug-fixes
- dev-queue-manager
- dev-tag-console-highlighter
- dev-phpunit-fixes
- dev-array-helper
- dev-string-helper
- dev-property-hooks
- dev-fix-licenses
- dev-add-package-validation
- dev-cleanup-ci-actions
- dev-fix-composer-files
- dev-finalize-unit-tests
- dev-aidan-casey-patch-1
- dev-speed-up-package-discovery
- dev-brendt-patch-1
- dev-discovery-cache-command
- dev-fix-exception-handlers-in-tests
- dev-update-readme
- dev-fix-env-detection
- dev-exception-handler
- dev-updates-unit-tests
- dev-refactor-http-router
- dev-aidan-casey-patch-3
- dev-aidan-casey-patch-2
- dev-add-env-example
- dev-discovery-cache-improvements
- dev-auth-layer-for-web
- dev-auth-layer
This package is auto-updated.
Last update: 2024-09-20 19:12:46 UTC
README
Tempest is a PHP framework that gets out of your way . Its design philosophy is that developers should write as little framework-related code as possible, so that they can focus on application code instead. Zero config, zero overhead. This is Tempest:
final class BookController { #[Get('/books/{book}')] public function show(Book $book): Response { return new Ok($book); } #[Post('/books')] public function store(CreateBookRequest $request): Response { $book = map($request)->to(Book::class)->save(); return new Redirect([self::class, 'show'], book: $book->id); } // … }
final class MigrateUpCommand { public function __construct( private Console $console, private MigrationManager $migrationManager, ) {} #[ConsoleCommand( name: 'migrate:up', description: 'Run all new migrations', middleware: [ForceMiddleware::class, CautionMiddleware::class], )] public function __invoke(): void { $this->migrationManager->up(); $this->console->success("Everything migrated"); } #[EventHandler] public function onMigrationMigrated(MigrationMigrated $migrationMigrated): void { $this->console->writeln("- {$migrationMigrated->name}"); } }
Read how to get started with Tempest here.
Installation
Install Tempest in any project, including existing projects:
composer require tempest/framework:1.0-alpha1
Or create a Tempest project from scratch:
composer create-project tempest/app:1.0-alpha1 <name>
Continue to read how Tempest works in the docs.
Contributing
We welcome contributing to the Tempest framework! We only ask that you take a quick look at our guidelines and then head on over to the issues page to see some ways you might help out!
For more information, join the Tempest Discord