Download the PHP package jameslevi/sprite without Composer

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

Sprite

Is a simple image to sprite compiler tool for web development.

Features

  1. Supports png, gif, jpg, bmp and webp icons.
  2. Automatically generate css class for each icon.
  3. Easy integration with any web projects.

Installation

  1. You can install via composer.

  2. Copy the atmos file from vendor/jameslevi/atmos folder to your root directory.
  3. Create a new folder in your root directory named commands.

Getting Started

  1. Create a new atmos command file named "sprite".

  2. Open the Sprite.php file from commands folder and add a new protected method named "generate".

  3. Try the following code inside the generate method.

  4. Run the following command in your terminal to generate sprite.

  5. Add the generated css file in the head section of your project.

  6. You can access each icon using css classes in this pattern sprite-{sprite name}-{icon name}.

  7. If there is a need to add new icons into your icon set, just run the generate command and it will generate new sprite image and stylesheet again.

Best Practices

  1. In each sprite set, always make sure all icons are of the same type and dimensions.
  2. Do not add spaces in naming icons, instead use hypen to separate words.
  3. Do not place your assets folder in public directory.

Contribution

For bug reports and suggestions, you can email James Levi Crisostomo via [email protected].

License

This package is an open-sourced software licensed under MIT License.


All versions of sprite with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
jameslevi/atmos Version v1.0.3
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 jameslevi/sprite contains the following files

Loading the files please wait ....