Developed with love by KnpLabs Hire us for your project!
37

SyliusAddressingBundle

by Sylius

[READ-ONLY] Addresses, countries, states and zones management for Symfony2.

SyliusAddressingBundle Build status...

Addresses management is a common task for almost every ecommerce application.

This bundle, with minimal configuration, provides you sensible models and architecture for addresses, countries and provinces.

It's fully customizable - you can easily add custom fields to your address entity, or split it into several models to handle different address types.
Includes a set of forms that will be sufficient for most popular actions.

Countries can handle multiple provinces (states), and you can easily extend that to more levels by introducing your own models.

Bundle also supports very flexible Zones system, which allows you to group countries and provinces into geographical areas.
Every address can be matched against all defined zones, which is useful for tax or shipping systems.

Sylius

Modern ecommerce for Symfony2. Visit Sylius.org.

phpspec examples

$ composer install
$ bin/phpspec run -fpretty

Documentation

Documentation is available on docs.sylius.org.

Contributing

All informations about contributing to Sylius can be found on this page.

Mailing lists

Users

Questions? Feel free to ask on users mailing list.

Developers

To contribute and develop this bundle, use the developers mailing list.

Sylius twitter account

If you want to keep up with updates, follow the official Sylius account on twitter.

Bug tracking

This bundle uses GitHub issues.
If you have found bug, please create an issue.

Versioning

Releases will be numbered with the format major.minor.patch.

And constructed with the following guidelines.

  • Breaking backwards compatibility bumps the major.
  • New additions without breaking backwards compatibility bumps the minor.
  • Bug fixes and misc changes bump the patch.

For more information on SemVer, please visit semver.org website.

This versioning method is same for all Sylius bundles and applications.

MIT License

License can be found here.

Authors

The bundle was originally created by Paweł Jędrzejewski.
See the list of contributors.

Copyright (c) 2011-2015 Paweł Jędrzejewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
sylius_addressing:
driver: ~ # Required
classes:
address:
model: Sylius\Component\Addressing\Model\Address
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\AddressType
country:
model: Sylius\Component\Addressing\Model\Country
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\CountryType
province:
model: Sylius\Component\Addressing\Model\Province
controller: Sylius\Bundle\AddressingBundle\Controller\ProvinceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ProvinceType
zone:
model: Sylius\Component\Addressing\Model\Zone
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneType
zone_member:
model: Sylius\Component\Addressing\Model\ZoneMember
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneMemberType
zone_member_country:
model: Sylius\Component\Addressing\Model\ZoneMemberCountry
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneMemberCountryType
zone_member_province:
model: Sylius\Component\Addressing\Model\ZoneMemberProvince
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneMemberProvinceType
zone_member_zone:
model: Sylius\Component\Addressing\Model\ZoneMemberZone
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: ~
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneMemberZoneType
validation_groups:
address:

# Default:
- sylius
country:

# Default:
- sylius
province:

# Default:
- sylius
zone:

# Default:
- sylius
zone_member:

# Default:
- sylius
scopes: []
  • Set default driver in bundle configuration
    By mtthb, 2 years ago
  • Version bump
    By pjedrzejewski, 2 years ago
  • Translations move away from Prezent
    By gonzalovilaseca, 2 years ago
  • Proceed Checkout API works now
    By , 2 years ago
  • Adjust required version of StofDoctrineExtensionsBundle
    By Shine-neko, 2 years ago
  • Merge pull request #2245 from stloyd/bugfix/cs
    By pjedrzejewski, 3 years ago
  • Merge pull request #2314 from gonzalovilaseca/gv-translations-mapping-fix
    By pjedrzejewski, 3 years ago
  • Fix translations mapping issue
    By gonzalovilaseca, 3 years ago
  • Rename Variation/CHANGELOG filename & updated LICENSE files
    By stloyd, 3 years ago
  • Fix some translation keys & missing new lines at end of files
    By stloyd, 3 years ago
  • PhpSpec config has been added with ps4 support
    By aRn0D, 3 years ago
  • Merge pull request #1927 from Strontium-90/automatic-form-registration
    By pjedrzejewski, 3 years ago
  • Improve composer consistency
    By mtthb, 3 years ago
  • [scrutinizer] Ramdom fixes
    By aRn0D, 3 years ago
  • Updating translations from Crowdin
    By SyliusBot, 3 years ago
  • Automatic form types registration
    By Strontium-90, 3 years ago
  • Sylius i18n
    By gonzalovilaseca, 3 years ago
  • Don't force bundles to define prefix when extending `AbstractResourceBundle`
    By stloyd, 3 years ago
  • Version bump
    By pjedrzejewski, 3 years ago
  • [AddressingBundle] The collection form type uses the new CollectionExtension
    By aRn0D, 3 years ago
  • Random CS fixes:
    By stloyd, 3 years ago
  • Merge pull request #2094 from Joypricecorp/api-address-missing-config
    By pjedrzejewski, 3 years ago
  • [BUG FIX - API] Add missing api province route.
    By liverbool, 3 years ago
  • [AddressBundle] Don't validate province if no country was set
    By stloyd, 3 years ago
  • Cleanup API code
    By pjedrzejewski, 3 years ago
  • Rework code & fix issues after gathering feedback
    By pjedrzejewski, 3 years ago
  • Initial API
    By pjedrzejewski, 3 years ago
  • Version bump
    By pjedrzejewski, 3 years ago
  • Add missing guest checkout service definition, fixes scenario
    By pjedrzejewski, 3 years ago
  • [AddressingBundle] Allow to easier replace default zone types
    By stloyd, 3 years ago