Installation:
composer require ais/jadwalbundle:dev-master
Add to AppKernel.php:
new Ais\JadwalBundle\AisJadwalBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
Routing:
Update app/config/routing.yml:
ais_jadwals:
type: rest
prefix: /api
resource: "@AisJadwalBundle/Resources/config/routes.yml"
NelmioApiDocBundle:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /api/doc
First Use Case: Access the API documentation at:
http://localhost/web/app_dev.php/api/doc
Explore endpoints under /api/jadwal.
RESTful API Integration:
GET /api/jadwal returns JSON).@Serializer\Annotation\Groups for partial responses).Entity Management:
Ais\JadwalBundle\Entity\Jadwal for custom fields (e.g., class CustomJadwal extends Jadwal).findByDateRange) in Ais\JadwalBundle\Repository\JadwalRepository.Validation:
@Assert\NotBlank on date field).Testing:
LiipFunctionalTestBundle (dev dependency).Guzzle\Plugin\Mock).php app/console doctrine:schema:update --force
JadwalEvents (if available) for pre/post-actions (e.g., logging, notifications).Ais\JadwalBundle\Controller\JadwalController for business logic (e.g., @Route("/api/jadwal/export")).Symfony 2.7 Dependency:
symfony/polyfill-* packages if needed.Missing Documentation:
src/Ais/JadwalBundle/Resources/config/doctrine/ for entity mappings.NelmioApiDocBundle Dependency:
nelmio_api_doc: false in config.Dev Dependencies:
doctrine-fixtures-bundle and liip/functional-test-bundle are dev-only; remove from composer.json for production.php app/console cache:clear
JMS\Serializer\Annotation (e.g., @Serializer\ExclusionPolicy).routes.yml in your bundle’s Resources/config/ to add endpoints.jadwal.pre_save/jadwal.post_load events (if bundle supports them).Ais\JadwalBundle\Twig\JadwalExtension for template helpers.incenteev/composer-parameter-handler for environment-specific configs (e.g., parameters.yml).leafo/scssphp is included for asset compilation; configure in config.yml:
assetic:
filters:
scssphp: ~
How can I help you explore Laravel packages today?