Download the PHP package osmphp/core without Composer

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

Build Status Total Downloads Latest Stable Version License

About osmphp/core

osmphp/core enables modular software development in any PHP project - dividing the application code into modules - reusable, extensible and pluggable parts.

A module is a directory responsible for a single feature or concept of your application. For example one module may handle products in e-commerce application, another - authorize users into the application's restricted area, yet another one - enable the application to be used in the command line, and so on.

osmphp/core is different from other frameworks in several ways:

Prerequisites

This library requires:

Install them if necessary.

Installation

Install the osmphp/core Composer package:

    composer require osmphp/core

Getting Started

Prepare the project for using the library as described below. In the future, this package will come preinstalled with a project template, and you will not have to write this boilerplate code.

  1. Create an application class in the src/App.php file (assuming that your project is configured to autoload the App\ namespace from the src/ directory; if it's not the case, adjust the code snippets accordingly):

    <?php
    declare(strict_types=1);
    namespace App;
    use Osm\Core\App as BaseApp;
    
    class App extends BaseApp {
    }
  2. Create a module group class and in the src/ModuleGroup.php:

    <?php
    
    declare(strict_types=1);
    namespace App;
    use Osm\Core\ModuleGroup as BaseModuleGroup;
    
    class ModuleGroup extends BaseModuleGroup {
    }
  3. Compile the application (in Windows, use \ instead of /):

    php vendor/osmphp/core/bin/compile.php App\App
  4. In your entry point file public/index.php (there may be more than one entry point file, add the following to every one of them), make sure that the code is executed in context of the application object:

    <?php
    
    declare(strict_types=1);
    
    use Osm\Runtime\Apps;
    use App\App;
    
    ...
    
    Apps::$project_path = dirname(__DIR__);
    Apps::run(Apps::create(App::class), function() {
        ...
    });

Using The Library

Documentation is a work in progress. This section will be updated once it is ready.

Contributing

Your help is really welcome, be it a reported bug, an occasional pull request, or the full fledged participation. To get started, open an issue and tell us that you want to be a part of it, and we'll get in touch.

License

The osmphp/core package is open-sourced software licensed under the GPL v3 license.

Commercial License & Support

In case the open source license if not a good fit for you, or if you need support, let me know.


All versions of core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-mbstring Version *
symfony/lock Version ^5
nikic/php-parser Version ^4
phpdocumentor/reflection-docblock Version ^5
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 osmphp/core contains the following files

Loading the files please wait ....