Download the PHP package gabriel-guelfi/splitphp without Composer

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

Introduction

splitphp-logo.png

Knowing PHP should be enough!

SPLIT PHP is born from the perception that the current tools available as frameworks in the marketplace for PHP developers are hyper-complex, heavy-weighted and old-styled. This one is not MVC, but built on top of SOA (Service Oriented Architecture), which makes it more reusable, straightforward, RESTful friendly and an easy-to-go for making micro-services systems. It is designed to be simple and lean, with a low learning curve. Its mission is to be a light tool with simplified interface. Knowledge required to understand and maintain an application written with this framework is basic PHP and OOP and the only dependency to run it is PHP itself.


What's New

Version: 1.4.10

Release Date: 2024-07-26

Last Update: 2024-07-26

Read more in the Release Notes.txt file.


Requirements


The Concept

Why "SPLIT"? Firstly because the word "split" is a reference to micro-services and split systems architecture (of course you can make monoliths with it, if that's your thing). Furthermore, it is an acronym for these 5 bound concepts which are the bases that this framework leans on: "Simplicity", "Purity", "Lightness", "Intuitiveness" and "Target Mindness".


Service Oriented Architecture (SOA)

A service is basically an encapsulated piece of functionality, which is accessible from any part within the application. So all services are accessible to one another from within the system, but not directly from the client, who only have access to an API Layer, which acts as a "gatekeeper" to the application. The result is a pool of reusable services which can be accessed from everywhere inside the application, but with controlled external access. splitphp-soa-diagram.png

The SPLIT PHP Framework represents its API Layer as WebServices, where the applications's endpoints are defined. From within an endpoint the WebService can call services and/or respond to the client. In summary, to create an API using SPLIT PHP's SOA, the dev will create the services, which are classes that perform the actual operations, then register endpoints on a WebService. Simple as that!


Getting Started

  1. Download the framework source on the path of your application and unzip it. (the Composer solution is currently being studied)
  2. Run php console setup, which will generate a "/config.ini" file, with some auto-settings.
  3. Setup /config.ini file according to your application's needs.
  4. Turn on your app running the command: php console server:start.
  5. Access http://localhost:8000 in the browser and you shall see the SPLIT PHP Welcome Page.

Read more about it all at the Official Documentation.

PS: The PHP's built-in server is meant to run only on dev environment. To run it properly on production, refer to the documentation, at the section "Deploy".


Basic Usage

Your application will be basically built within three main folders under "/application/"

splitphp-app-dirtree.png

splitphp-rest-service.png

An endpoint is composed by 3 parts:

  1. A HTTP verb ("GET")
  2. The route ("/home")
  3. The handler function, which executes when the endpoint is accessed at the route.

In the example above, you could access that "/home" endpoint at "http://localhost:8000/site/home"

splitphp-service.png

splitphp-template.png

Note that this is the template rendered in the WebService in the first example, and this $data variable has the same name passed when it was being rendered. In these 3 examples, if you access "http://localhost:8000/site/home" you shall see a web page with the contents of this HTML template.

For more information visit the Official Documentation


Conclusion

SPLIT PHP requires only PHP to run, its syntax has nothing different from the PHP proper syntax, no "special annotations" that are something more than comments, no other engines other than its own to make it work fully. A dev who knows basic PHP and Object-Oriented Programming, shall not have problems learning how to use it confidently in a short period and the applications created with it are light and fast.

Visit the Official Website to learn more about it and build rich and modern web applications in PHP.

This framework is part of the gigantic Technology Open Source community of the world. It's free to download, use, modify and distribute. For more info about its licensing, see the MIT LICENSE.pdf file.

If you are a PHP enthusiastic and liked this work, help us enlarge the community and add new features to this framework, joining us. Send me an email and I'll add you to the SPLIT PHP's Slack Channel.

Ah, if you liked the work, don't forget to star it and follow this repository to be up to date with our new features. Thx!


Authors


Acknowledgments



All versions of splitphp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 gabriel-guelfi/splitphp contains the following files

Loading the files please wait ....