Download the PHP package grnspc/addressable without Composer

On this page you can find all versions of the php package grnspc/addressable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package addressable

GrnSpc Addresses

GrnSpc Addresses is a polymorphic Laravel package, for addressbook management. You can add addresses to any eloquent model with ease.

Installation

  1. Install the package via composer:

  2. Publish resources (migrations and config files):

  3. Execute migrations via the following command:

  4. Done!

Usage

To add addresses support to your eloquent models simply use \Grnspc\Addresses\Traits\HasAddress trait.

Adding an Address to a Model.

  1. Method 1 - Via addAddress() Method

    This method does a valadation check.
  2. Method 2 - Via Eloquent Relationship

  3. Method 3 - Create multiple new addresses

Updating an Address on a Model

  1. Method 1 - Via updateAddress() Method

  2. Method 2 - Via Eloquent Relationship

Deleting an Address on a Model

Delete a Single Address

  1. Method 1 - Via deleteAddress() Method

  2. Method 2 - Via Eloquent Relationship

    Alternative way of address deletion

Delete a All Address

  1. Method 1 - Via flushAddress() Method

  2. Method 2 - Via Eloquent Relationship

Address Facade

Manage your Addresses on Model

The API is intuitive and very straight forward, so let's give it a quick look:

Check if a Model has Addresses

Get all Addresses for a Model

Get Latest Addresses for a Model

Scoping and Getting Primary Addresses

Scoping and Getting Billing Addresses

Scoping and Getting Shipping Addresses

Scoping Addresses by Country

Find all addresses within 5 kilometers radius from the latitude/longitude 51.1754012/-115.5715499

Changelog

Refer to the Changelog for a full history of the project.

Contributing & Protocols

Thank you for considering contributing to this project! The contribution guide can be found in CONTRIBUTING.md.

Bug reports, feature requests, and pull requests are very welcome.

Security Vulnerabilities

If you discover a security vulnerability within this project, please submit an issue. All security vulnerabilities will be promptly addressed.

License

This software is released under The MIT License (MIT).

(c) 2014-2022 GrnSpc, Some rights reserved.


All versions of addressable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.0
illuminate/console Version ^8.0.0 || ^9.0.0
illuminate/database Version ^8.0.0 || ^9.0.0
illuminate/support Version ^8.0.0 || ^9.0.0
jackpopp/geodistance Version ^1.2.0
rinvex/countries Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package grnspc/addressable contains the following files

Loading the files please wait ....