delboy1978uk/bone-address

Address package for Bone Framework

v2.0.2 2021-11-05 01:59 UTC

This package is auto-updated.

Last update: 2024-04-05 07:26:09 UTC


README

Address package for Bone Mvc Framework

installation

Use Composer

composer require delboy1978uk/bone-address

usage

Simply add to the config/packages.php

<?php

// use statements here
use Bone\Address\AddressPackage;

return [
    'packages' => [
        // packages here...,
        AddressPackage::class,
    ],
    // ...
];

Run database migrations and you are ready to access /admin/address

bone migrant:diff
bone migrant:migrate
bone migrant:generate-proxies

admin routes

You can access /admin/address to get SessionAuth protected CRUD pages. We will make these routes able to be enabled/disabled in a future release.

setCountry(Country $country) now takes a Country object as of v2.0.0. You can create a Country object by passing in the ISO code:

$country = CountryFactory::generate('GB');