ais / statuskeaktifanbundle
A bundle filled with StatusKeaktifan
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.9
- doctrine/doctrine-bundle: ~1.4
- doctrine/orm: ^2.4.8
- friendsofsymfony/rest-bundle: @dev
- incenteev/composer-parameter-handler: ~2.0
- ircmaxell/password-compat: ~1.0
- jms/serializer-bundle: @dev
- leafo/scssphp: ~0.1.5
- nelmio/api-doc-bundle: @dev
- patchwork/jsqueeze: ~1.0
- sensio/distribution-bundle: ~4.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: 2.7.*
- willdurand/rest-extra-bundle: @dev
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: dev-master
- guzzle/plugin: 3.7.*
- liip/functional-test-bundle: dev-master
- phpunit/phpunit: 3.7.*
- sensio/generator-bundle: ~2.3
- symfony/phpunit-bridge: ~2.7
This package is not auto-updated.
Last update: 2024-09-24 19:19:09 UTC
README
statuskeaktifan Bundle For AIS. I use Symfony 2.7.4 in my kit. In case if you want to install Symfony follow the URL below:
Usage
I assume you already have composer on your dev environment. If not, please visit this URL:
Add the following inside require tag in your root composer.json file:
{ "require": { "ais/statuskeaktifanbundle" : "dev-master" }, }
Run composer update, and wait until composer update is finished.
php composer.phar update
Registering the bundle into your AppKernel.php
Once the composer update is finished. If you not yet install NelmioApiDocBundle before, you need registering it too.
Because this bundle require NelmioApiDocBundle to see the API doc. I also use JMS Serializer and FOSRestBundle.
<?php // app/AppKernel.php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new Nelmio\ApiDocBundle\NelmioApiDocBundle(), new FOS\RestBundle\FOSRestBundle(), new JMS\SerializerBundle\JMSSerializerBundle(), new Ais\StatusKeaktifanBundle\AisStatusKeaktifanBundle(), ); ... return $bundles; } }
Import the route to your app/config/routing.yml
ais_statuskeaktifans: type: rest prefix: /api resource: "@AisStatusKeaktifanBundle/Resources/config/routes.yml" NelmioApiDocBundle: resource: "@NelmioApiDocBundle/Resources/config/routing.yml" prefix: /api/doc
See what in the inside
Now you may see the available API by access your url dev
ex: http://localhost/web/app_dev.php/api/doc
Find a typo? just ask me for PR. If you find some error please help me to fix it by email me to vizzlearn@gmail.com