Download the PHP package tobento/service-user without Composer

On this page you can find all versions of the php package tobento/service-user. 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 service-user

User Service

A user and address interface for PHP applications.

Table of Contents

Getting started

Add the latest version of the user service project running this command.

Requirements

Highlights

Documentation

User

Create User

Check out the User Interface to learn more about the interface.

Check out Addressable to learn more about the interface.

User Factory

Easily create a user with the provided user factory:

createUser

Parameters:

createUserFromArray

If you want to create a user with addresses, you need to set an AddressesFactory, otherwise addresses gets not created.

User Interface

Address

Create Address

Address Factory

Easily create an address with the provided address factory:

createAddress

Parameters:

createAddressFromArray

Address Interface

getters

with methods

The with methods will return a new instance.

Addresses

Create Addresses

Check out Addresses Interface to learn more about the interface.

Addresses Factory

Easily create an addresses object with the provided addresses factory:

createAddresses

createAddressesFromArray

Addresses Interface

addressFactory

get

The get method returns the address by the specified key. If the address does not exist yet, it will create and add it to the addresses.

add

create

The create method creates an address with the specified parameters, but does it not add to the addresses.

address

The address method creates an address and adds it to the addresses.

has

Check if an address exists.

delete

all

filter

You might filter addresses returning a new instance.

group

The group method filters addresses by the specified group.

Addressable

addresses

Check out the Addresses Interface to learn more about the interface.

address

The address method returns the address if exists or creates a new address for the specified key.

hasAddress

Address Aware Interface

The user has implemented the interface returning the address:

User Aware Interface

Credits


All versions of service-user with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
tobento/service-collection Version ^2.0
tobento/service-support Version ^2.0
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 tobento/service-user contains the following files

Loading the files please wait ...