Download the PHP package ponponumi/link_create without Composer

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

Link Create

このパッケージは、テキストからリンクを生成するPHPパッケージです。

リンク化の対象となるものは、次の通りです。

Composerでのインストールについて

次のコマンドを実行する事で、インストール可能です。

このライブラリの挙動

私のメールアドレスは、 [email protected] で、ホームページは https://example.com です!

例えば、上記の文字列を、下記のHTMLに変換します!

  私のメールアドレスは、 
  <a href="mailto:[email protected]">
    [email protected]
  </a>
  &nbsp;で、ホームページは&nbsp;
  <a href="https://example.com" target="_blank" rel="noopener noreferrer" >
    https://example.com
  </a>
  &nbsp;です!

HTMLとして取得する場合の使い方

HTMLとして取得する場合、次の方法で取得可能です

HTMLの生成が面倒な場合は、こちらをご利用ください。

HTMLとして取得する場合のオプション

オプションについては、次のようになります。

hashtagNotGet

trueの場合はハッシュタグが取得されません。

初期状態ではfalseです。

hashtagUrl

ハッシュタグ検索用のURLのベースです。

初期状態では空文字です。

実際にハッシュタグに置き換えたい部分に、 {hashtag} と記述して下さい。

この部分は、文字列以外の値を登録しないで下さい。

hashtagNotGetの設定に関わらず、この項目を設定しない場合、ハッシュタグはリンク化されません。

emailNotGet

trueの場合はメールアドレスが取得されません。

初期状態ではfalseです。

urlNotGet

trueの場合はURLが取得されません。

初期状態ではfalseです。

blankMode

これは、HTMLの target="_blank" と rel="noopener noreferrer" を有効にするかどうかです。

挙動は次の通りです。

初期状態では1です。

internalUrl

これは、内部ホストを上書きするかどうかです。

上書きする場合は、ホスト(ドメイン)か、トップページのURLを入力して下さい。

初期状態では空文字です。

この部分は、文字列以外の値を登録しないで下さい。

空文字にした場合、内部のホストは $_SERVER["HTTP_HOST"] で取得したものが使われます。

通常は、空文字にして下さい。

hashDelete

trueの場合は、ハッシュタグのURL生成時、#が削除されます。

初期状態ではtrueです。

hashEncode

trueの場合は、ハッシュタグの部分が、urlencode関数でエンコードされます。

初期状態ではtrueです。

nbspEncode

trueの場合は、半角スペースが、「&nbsp;」にエンコードされます。

初期状態ではtrueです。

連想配列として取得する場合(一致データの取得)

一致データの取得については、次の方法で行えます。

連想配列として取得する場合(整理済みデータの取得)

整理済みデータの取得については、次の方法で行えます。

こちらについては、クライアントサイドでデータの処理を行いたい場合、出力されるHTMLを調整したい場合などに向いています。

連想配列として取得する場合のオプション

配列に、次の文字列を入力すると、それぞれ取得されます。

初期状態では、全て取得する設定になっています。

ライセンスについて

このパッケージは、MITライセンスとして作成されています。

このパッケージは、ponponumiが作成したパッケージの他、 piscibus様が制作した、PHP Hashtag を使用しています。


All versions of link_create with dependencies

PHP Build Version
Package Version
Requires ponponumi/url_search Version ^1.0
ponponumi/email_search Version ^1.0
ponponumi/match_pos Version ^1.0
piscibus/php-hashtag Version ^1.1
ponponumi/url_tool Version ^1.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 ponponumi/link_create contains the following files

Loading the files please wait ....