Download the PHP package viewflex/tiny without Composer

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

Tiny

Provides generation and serving of shortened URLs in a Laravel application.

Overview

Basic Steps

Architecture

All interaction with the database is handled by a repository class implementing the TinyQueryInterface (by default, the TinyQuery class). The concrete query class is bound via the package configuration, so it's easy to create and deploy a new query class for an alternate data source (NoSQL, key-value store, etc), without hacking the package itself.

Installation

From your Laravel application's root directory, install via Composer:

Add the TinyServiceProvider to the list of providers in config/app.php. Note: This is not necessary when using Laravel 5.5 or greater with package discovery enabled.

Migration

Laravel 5.4 or greater can run the migration directly from the package.

For older versions of Laravel, publish the migration first.

Configuration

The tiny.php config file contains the package settings.

If you need to customize the configuration, run this command to publish the config file to the project's config directory:

This will also publish the UI view template to your project's resources/views/vendor/tiny directory. Unless you need to customize one of these files it is not necessary to publish them.

Caching

By default, URL lookups are cached, which greatly increases performance. You can disable this or change the cache lifetime to suit your needs.

Query

This is the repository class that interacts with the data source. Any class implementing the TinyQueryInterface can be used in place of the default, as needed.

Tables

Here the table name is aliased, to allow using whatever table name you want without hacking the package.

Usage

Adding URLs

The TinyController provides a UI for adding URLs. Simply enter a URL and click the Save button. The URL will be displayed along with it's alias in the resulting message. The route <mydomain>/tiny/create is used to access the UI from a web browser. It is also quite easy to integrate the TinyService class into your own code, to generate and store URLs programatically.

Serving URLs

Once stored, a URL can be accessed via the <mydomain>/tiny/{hash} package route. Of course, if necessary you can also create an additional route to hit the same controller method.

Tests

Tests can be run in the usual way, as described in the test documentation.

License

This software is offered for use under the MIT License.


All versions of tiny with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ~5.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 viewflex/tiny contains the following files

Loading the files please wait ....