2017 © Pedro Peláez
 

symfony-bundle sylius-location-bundle

Location bundle for Sylius e-commerce platform.

image

webburza/sylius-location-bundle

Location bundle for Sylius e-commerce platform.

  • Thursday, April 13, 2017
  • by ychanan
  • Repository
  • 1 Watchers
  • 10 Stars
  • 786 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 7 Versions
  • 2 % Grown

The README.md

Sylius Location Bundle

This bundle adds location (shops, offices, ...) functionality to Sylius e-commerce platform. Locations are translatable, and can have their own images. Frontend has a listing of all locations, a simple search, detailed location view with images and Google Maps support on both pages., (*1)


Installation

  1. require the bundle with Composer:, (*2)

    $ composer require webburza/sylius-location-bundle
    
  2. enable the bundle in app/AppKernel.php:, (*3)

    public function registerBundles()
    {
    $bundles = [
      // ...
      new \Webburza\Sylius\LocationBundle\WebburzaSyliusLocationBundle(),
      // ...
    ];
    }
    
  3. add configuration to the top of app/config/config.yml:, (*4)

    imports:
      - { resource: "@WebburzaSyliusLocationBundle/Resources/config/config.yml" }
    

    Among other things, this provides configuration entries which can then be overriden in your app's config.yml., (*5)

    webburza_sylius_location:
      google_maps_enabled: false
      google_maps_key: 1234567890
    
  4. register routes in app/config/routing.yml, (*6)

    webburza_sylius_location_bundle:
      resource: "@WebburzaSyliusLocationBundle/Resources/config/routing.yml"
    
    webburza_sylius_location_bundle_front:
      resource: "@WebburzaSyliusLocationBundle/Resources/config/routingFront.yml"
      prefix: /location
    

    As you can see, there are two groups of routes, the main resource (administration) routes and frontend routes., (*7)

  5. The bundle should now be fully integrated, but it still requires database tables to be created. For this, we recommend using migrations., (*8)

    $ bin/console doctrine:migrations:diff
    $ bin/console doctrine:migrations:migrate
    

    Or if you don't use migrations, you can update the database schema directly., (*9)

    $ bin/console doctrine:schema:update
    
  6. By default, there will be no location types defined. You should create and translate the location types that you need and create locations that use those types., (*10)

Translations and naming

The bundle has multilingual support, and language files can be overridden as with any other bundle, by creating translation files in the app/Resources/WebburzaSyliusLocationBundle/translations directory., (*11)

To get started, check the bundle's main language file in: Resources/translations/messages.en.yml, (*12)

License

This bundle is available under the MIT license., (*13)

To-do

  • automated tests

The Versions

13/04 2017

dev-master

9999999-dev

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

13/04 2017

v0.4.1

0.4.1.0

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

13/04 2017

v0.4.0

0.4.0.0

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

11/10 2016

dev-develop

dev-develop

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

06/09 2016

v0.3.0

0.3.0.0

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

17/06 2016

v0.2.0

0.2.0.0

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza

16/06 2016

v0.1.0

0.1.0.0

Location bundle for Sylius e-commerce platform.

  Sources   Download

MIT

The Requires

 

by Tin Benjamin Matuka

symfony sylius location web.burza webburza