Download the PHP package venturecraft/initialcon without Composer

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

Initial based icon generator for PHP

        

Installation

The recommended way to install Initialcon is through composer.

Just create a composer.json file for your project:

And run these two commands to install it:

Now you can add the autoloader (if your framework doesn't already do this for you), and you will have access to the library:

You're done.

Usage

Images are generated in PNG format with a colored background & the initials in white text.

The string can be an email, an IP address, a username, an ID or something else that is persistant between page loads. This string determines the color of the icon background and will persist between pageloads so long as the string doesnt change.

Generate an initialcon

Create a new object.

Then you can generate and display an initialcon image

or generate and get the image data

or generate and get the base 64 image uri ready for integrate into an HTML img tag.

Change the size

By default the size will be 64 pixels. If you want to change the image size just add a secondary parameter. 512 x 512px in this example.

Color

The color is automaticaly generated according to the string hash but you can chose to specify a color by adding a third argument.

Color can be an hexadecimal with 6 characters

Image Object

You can also grab the Image object to add more manipulation to the final icon (such as rounded corders, opacity, etc). We use the Intervention library for image creation so all of its' methods are available to you.

That's it!

Unit Tests

To run unit tests, you'll need and a set of dependencies you can install using Composer:

Once installed, just launch the following command:

Everythings should be ok.

Credits

License

Initialcon is released under the MIT License. See the bundled LICENSE file for details.


All versions of initialcon with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
intervention/image Version 2.*
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 venturecraft/initialcon contains the following files

Loading the files please wait ....