delboy1978uk/bone-address

Address package for Bone Framework

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/delboy1978uk/bone-address

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

This package is auto-updated.

Last update: 2025-10-05 10:38:00 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');