Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Kabupatenbundle Laravel Package

ais/kabupatenbundle

View on GitHub
Deep Wiki
Context7

ais-kabupaten-bundle

kabupaten Bundle For AIS. I use Symfony 2.7.4 in my kit. In case if you want to install Symfony follow the URL below:

Symfony 2.7

Usage

I assume you already have composer on your dev environment. If not, please visit this URL:

Getting started with Composer

Add the following inside require tag in your root composer.json file:

{
    "require": {
      "ais/kabupatenbundle" : "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\KabupatenBundle\AisKabupatenBundle(),
        );
        ...

        return $bundles;
    }
}

Import the route to your app/config/routing.yml

  ais_kabupatens:
    type: rest
    prefix: /api
    resource: "@AisKabupatenBundle/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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware