Download the PHP package 0ws0/hobby without Composer

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

PSR-0 PSR-4 示例 PSR规范:https://psr.phphub.org/

在做composer包时,调示方法为在vendor_name目录下进行composer install则会生成vendor目录然后可写单元进行composer配置和类方法测试。

附: PSR-0规范 1、 一个完全合格的 namespace 和 class 必须符合这样的结构:“< Vendor Name>(< Namespace>)*< Class Name>” 2、每个 namespace 必须有一个顶层的 namespace("Vendor Name" 提供者名字) 3、每个 namespace 可以有多个子 namespace 4、当从文件系统中加载时,每个 namespace 的分隔符(/)要转换成 DIRECTORYSEPARATOR (操作系统路径分隔符) 5、在类名中,每个下划线()符号要转换成 DIRECTORY_SEPARATOR (操作系统路径分隔符)。在 namespace 中,下划线_符号是没有(特殊)意义的。 6、当从文件系统中载入时,合格的 namespace 和 class 一定是以 .php 结尾的 7、verdor name,namespaces,class 名可以由大小写字母组合而成(大小写敏感的)

PSR-4规范 PSR-4规范了如何指定文件路径从而自动加载类定义,同时规范了自动加载文件的位置。这个乍一看和 PSR-0 重复了,实际上,在功能上确实有所重复。区别在于 PSR-4 的规范比较干净,去除了兼容 PHP 5.3 以前版本的内容,有一点 PSR-0 升级版的感觉。当然,PSR-4 也不是要完全替代 PSR-0,而是在必要的时候补充 PSR-0 ——当然,如果你愿意,PSR-4 也可以替代 PSR-0。PSR-4 可以和包括 PSR-0 在内的其他自动加载机制共同使用。    PSR4标准与PSR0标准的区别:

1)在类名中使用下划线没有任何特殊含义。

2)命名空间与文件目录的映射方法有所调整。

PSR-0风格

vendor/
vendor_name/
    package_name/
        src/
            Vendor_Name/
                Package_Name/
                    ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            Vendor_Name/
                Package_Name/
                    ClassNameTest.php   # Vendor_Name\Package_Name\ClassName

  PSR-4风格

vendor/
vendor_name/
    package_name/
        src/
            ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            ClassNameTest.php   # Vendor_Name\Package_Name\ClassNameTest    vendor/
vendor_name/
    package_name/
        src/
            ClassName.php       # Vendor_Name\Package_Name\ClassName
        tests/
            ClassNameTest.php   # Vendor_Name\Package_Name\ClassNameTest

All versions of hobby with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.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 0ws0/hobby contains the following files

Loading the files please wait ....