Download the PHP package ricwein/shurl without Composer

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

shurl

Another PHP based URL shortener.

Install

project

To create a new shurl instance, the project can be initialized through composer, just run the following command:

Database

Initializing the Database structure can be done two ways. Either run the static queries from resources/database/database.sql, or use the init commandline tool.

This tool requires you, to first setup your wished database configuration! This can be done, as described in Configuration. A valid Database-user is required, and needs either: the database to be already existing, or rights to create a new one.

Since this tool, acknowledges your database-configuration, the resulting database-structure is customizable! use table-prefixes, custom charsets, or even another database name!

Configuration

The default configuration is stored in src/Config/Config.php $__config Array, but can be overwritten by adding a config-file at config/config.yml. It should has the following format:

This way it's possible, to override each single setting.

You can copy an example file to start with

rootURL

For some features, shurl need to know your webservers Domain and Path to shurl. This URL can be set inside the described configfile:

Adding a new URL

Adding a new URL to the shortener Server is done with the bundled CLI tool. Just run bin/shurl url:add, and follow the instructions. For more Informations see bin/shurl url:add --help.

Remove an URL

Removing an URL from the list, is as easy as adding one. Execute bin/shurl url:remove from your command line should do the job.

List available URLs

A list of all currently available URls can be accessed through: bin/shurl url:show

Routes

There are several different routes, which are supported by shurl.


All versions of shurl with dependencies

PHP Build Version
Package Version
Requires php Version >= 7.0.0
usmanhalalit/pixie Version ^2.0
symfony/yaml Version ^3.2
phpfastcache/phpfastcache Version ^6.0
symfony/console Version 3.4.x-dev
monolog/monolog Version ^2.0@dev
hashids/hashids Version ^2.1@dev
leafo/scssphp Version dev-master
klein/klein Version dev-master
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 ricwein/shurl contains the following files

Loading the files please wait ....