Download the PHP package ismaxim/urling without Composer

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

Urling - url parser & constructor

Build Status

Urling

๐ŸŒโ€‡ะ”ะพะบัƒะผะตะฝั‚ะฐั†ะธั ะฝะฐ ั€ัƒััะบะพะผ โ†’โ€‡|โ€‡ะ”ะพะบัƒะผะตะฝั‚ะฐั†ั–ั ะฝะฐ ัƒะบั€ะฐั—ะฝััŒะบั–ะน โ†’

โš™๏ธ Installation

To install this library - run the command below in your terminal:

๐Ÿง™ Usage

๐Ÿ“– Concept

Three major ideas

๐Ÿ“— 1. Two modes to work with URL: parser mode & constructor mode.
๐Ÿ“˜ 2. Accessing to concrete part of URL with using aliases (see Aliases).
๐Ÿ“™ 3. Base editors for processing complete URL and each part separately (see section Basic usage).


๐Ÿš€ Start

๐Ÿ”‘ Accessing


You can access to concrete URL part to parse it by using its basename (see Aliases) like:

ACCESSING TABLE

Url Part Aliases Parser
scheme protocol SchemeParser
user username UserParser
pass password PassParser
host hostname, domain HostParser
port PortParser
path routes PathParser
query params, attributes QueryParser
fragment anchor FragmetParser

๐Ÿ‘ถ Basic usage


Basic Editors - Base editor of URL and Base editor of part of URL cover almost all tasks: add, get, update or remove URL or values anywhere in it. Base Editors are "CRUDable" wrappers over the __parse_url()__ function from native PHP, and according to this fact, they return and modify values in a similar way. The only significant difference is the syntax of calls when parsing a URL or its parts.

๐Ÿง” Advanced usage


If you need to do something like add, get, update or delete the value of any part of the URL, but it's outside the scope of the base functionality, you can use one of the Base editors functions add, get, update or delete as a prefix with the name of a specific method as postfix appropriate for your task like:

(add, get, update, delete) + "SomeFunctionName" for the concrete task.

Note: Almost all functions will use that code convention permanently.

Examples:

๐Ÿงช Testing

Actually, all tests already automatically passed within CI build.

To test this library - run the command below in your terminal.

๐Ÿค Contributing

If you have a problem that cannot be solved using this library, please write your solution and if you want to help other developers who also use this library (or if you want to keep your solution working after a new version is released, which will go to package manager dependencies) - create a pull-request. We will be happy to add your excellent code to the library!

๐Ÿž Report any bugs or issues you find on the GitHub issues.

โœจ Creating custom functional

You can extend the functionality of the library with your own code, making edits to solve your problems in the parser classes. There are two types of parser classes the first and the main is URL parser, but there are others as well, - URL parts parsers. For each part is separate own parser.

Using the library or examining docs you can notice the same or similar to this record:

This entry might interpret the next way: "Hey, Urling, ask to the part 'params' on the current URL and return it value(this part)".

Basically extending functionality, you will work with a part of the URL almost all times and will processing or get the value for a specific part. To understand how to access to parser for needed part you can look at parser section, and then go to the desired parser file and write the best code in the world!

๐Ÿ“Ž Credits

๐Ÿ“ƒ License

The MIT License (MIT). Please see License File for more information.


All versions of urling with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
webmozart/assert Version ^1.10.0
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 ismaxim/urling contains the following files

Loading the files please wait ....