abbadon1334 / atk4-symfony-bundle
Agile Toolkit 4 Symfony Bundle
Installs: 1 800
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 14
Type:symfony-bundle
Requires
- php: >8.0
- atk4/ui: 5.0.0
- matomo/device-detector: ^6.1
- mobiledetect/mobiledetectlib: ^3.74
- nesbot/carbon: 2.72.1
- ramsey/uuid: 4.7.5
- rogervila/array-diff-multidimensional: 2.1.0
- symfony/config: ^6.3
- symfony/dependency-injection: ^6.3
- symfony/filesystem: 6.3.*
- symfony/http-kernel: ^6.3
- symfony/security-bundle: v6.3.11
- symfony/translation: 6.3.*
- symfony/yaml: ^6.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.26
- phpstan/phpstan: ^1.10.35
- rector/rector: ^0.18.3
- dev-master
- dev-renovate/nesbot-carbon-3.x
- dev-renovate/packagist-symfony-security-bundle-vulnerability
- dev-renovate/symfony
- dev-renovate/atk4-ui-5.x
- dev-renovate/shopify-draggable-1.x-lockfile
- dev-renovate/highlightjs-cdn-assets-11.x-lockfile
- dev-renovate/jquery-3.x-lockfile
- dev-renovate/nesbot-carbon-2.x
- dev-renovate/ramsey-uuid-4.x
- dev-renovate/rector-rector-1.x
- dev-fix/models-rebuild
- dev-feature/fix-exception
- dev-feature/fix-soft-delete
- dev-fix-db-rebuild
- dev-feature/fix-default-value
- dev-renovate/chart.js-4.x
This package is auto-updated.
Last update: 2024-11-21 23:32:27 UTC
README
WIP Beta Repository
usage
composer create-project symfony/skeleton:"^6.3.8" my_project_directory
cd my_project_directory
by default symfony sets to stable
composer config minimum-stability dev
composer require abbadon1334/atk4-symfony-bundle:"*"
will add bundle config + bundle files in public folder
in bin/console there is a useful command to rebuild the database during development the rebuild is based on models
bin/console models:rebuild -p src/Models
Atk controllers can be created easy using attribute #[Atk4Controller]
a simple controller can be created in this way:
use Atk4\Symfony\Module\Atk4App; use Atk4\Symfony\Module\Atk4Controller; use Atk4\Symfony\Module\Atk4App; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Atk4\Ui\Header;
#[Atk4Controller] class Homepage extends AbstractController { // Symfony built in injection public function __construct( protected Atk4App $atk4app, protected Security $security ) { }
#[Route('/', name: 'homepage')]
public function index(): Response
{
$app = $this->atk4app->getApp();
$app->initLayout([Centered::class]);
Header::addTo($app, ['Demo']);
}
}