PHPackages                             start-kit-symfony/start-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. start-kit-symfony/start-bundle

ActiveSymfony-bundle[Security](/categories/security)

start-kit-symfony/start-bundle
==============================

Symfony StartBundle With User and Security

1.1.4(8y ago)3248MITPHPPHP &gt;=7.0.0

Since Nov 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phptuts/StarterBundleForSymfony)[ Packagist](https://packagist.org/packages/start-kit-symfony/start-bundle)[ Docs](http://skbfsp.info)[ RSS](/packages/start-kit-symfony-start-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (31)Versions (8)Used By (0)

Setup Guide and Project Overview
================================

[](#setup-guide-and-project-overview)

[![Build Status](https://camo.githubusercontent.com/c9b0d1fd1f787f465667e9b4e5cb78d4a4a79df432c271d534b02a43d32bd43f/68747470733a2f2f7472617669732d63692e6f72672f706870747574732f737461727465726b6974666f7273796d666f6e792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phptuts/starterkitforsymfony)

[![codecov](https://camo.githubusercontent.com/89a629f6777bc580ea2a35b49038a928faa53a4964e27dadaafbb765c9a67994/68747470733a2f2f636f6465636f762e696f2f67682f706870747574732f5374617274657242756e646c65466f7253796d666f6e792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/phptuts/StarterBundleForSymfony)

- [Example Website Using Symfony 4](https://skbfsp.info)
- [Example Code Using Symfony 4](https://github.com/phptuts/starter-bundle-example-symfony-4)
- [Example Code Using Symfony 3](https://github.com/phptuts/starter-bundle-example)

Setup Guide Symfony 4
---------------------

[](#setup-guide-symfony-4)

1. Install the bundle, don't do the recipe at this time.

```
composer require start-kit-symfony/start-bundle

```

2. Add the api routes to the bundle in the config -&gt; routes.yaml

```
starter_kit_start:
    resource: "@StarterKitStartBundle/Resources/config/routing.yml"

```

3. Add NelmioApiDocBundle to bundles.php in -&gt; config folder

```
Nelmio\ApiDocBundle\NelmioApiDocBundle::class => ['all' => true],

```

4. Add a nelmio\_api\_doc.yaml to the config folder and paste this in there.

```
nelmio_api_doc:
    routes:
        path_patterns: # an array of regexps
            - ^/(api(?!-docs))
            - ^/oauth
            - ^/login_check
            - ^/access-tokens

    models: { use_jms: false }
    documentation:
        info:
            title: 'Symfony Starter Api'
            description: 'Our Symfony Starter Kit Api Documentation.'
            version: 1.0.0

```

5. Add the service alias to services.yaml file. This is a temporary hack.

```
Nelmio\ApiDocBundle\ApiDocGenerator: '@nelmio_api_doc.generator'

```

6. Add A controller class called ApiDocController and add method called apiDoc

```
