Download the PHP package dakujem/shorts without Composer

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

🩳 shorts

PHP from Packagist Build Status Nature Friendly

Use this tool to shorten or limit personal names to desired length, or to use initials instead of a full name.\ Supports Unicode / UTF-8 names.

well i could not google out anything reasonable in well over 60 minutes so i decided to code it in less than that. how silly i was...

TODO / in progress

The features and the public interface are in place. The code is still ugly, don't fret. 🙊

I'm also deciding how to make it possible for a custom name parser to be provided on the fly/by configuration, so that special cases (like compound names) can easily be supported. Bear with me. 🐻

Supported:

What is not (yet) supported:

You will need to handle these yourself before/after passing them through the shortener.

Usage

Limit (cap) names to desired lengths:

The above will try to keep the last name legible, unless the limit is too strict.\ Inverse version that will try to keep the first name legible is also available:

Shrink names using initials except for the last name:

Shrink names using initials except for the first name:

Create "short" initials:

... or "longer" version:

Each of the static methods has a non-static counterpart:

Shorts also provides the ability co create a preconfigured formatter callable for each of the methods:

These can be used as follows:

Note the formatters can come handy when defining filters for templating languages, like Twig or Latte.

Testing

$ composer test

Contributions

... are always welcome. Many times it is useful to just point out a use case the author have not thought about or come across.

Possible future stuff


All versions of shorts with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 dakujem/shorts contains the following files

Loading the files please wait ....