Download the PHP package ashish336b/carpo-php without Composer

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

PhpClosureBasedFramework

This is simple php closure based framework for api development

Installation

With this Installation is completed. Run the command to open web server in port 1212.

Project Folder Structure.

├───app
│ ├───controller
│ ├───middleware
│ ├───model
│ └───views
├───public
└───vendor

with this Full installation is completed.

Routes

You can create routes by calling static class Application

Methods

There is also another method you can access from \ashish\PhpCBF\Application class

EVENTTYPE can be either BEFORE or AFTER

URL Pattern

Optional Pattern.

Routes Group

Controller

You can create controller class inside app/controller with namespace namespace App\controller;

you can define class and method to execute in route with classname@methodname.

Model

This contains data related logic such as retriving data from database and passing to controller.
you have to create model class inside model folder. This folder can contain sub folder to group models.

To access model function from controller.

Here Auth is the name of file that is inside model folder and fetchUser() is method inside Auth file/class.

In above case Auth class is inside Admin folder which is inside model folder.

Database

This framework mainly support mysql database. However you can integrate any database with the help other open source project.

Migration

you can use migration to run create table, alert etc. every migration should be inside app/migration directory.

every migration should be created in this manner. Till now sub directory is not allowed to store migration. Every migration should be in app/migrations directory.

Middleware

Middleware provide a convenient mechanism for filtering HTTP requests entering your application. For Example if you want to check if user is authenticated or not you can check it in middleware. If user is not authenticated you can throw response of 403 which does not allow routes closure to execute.

Your can define Middleware in routes groups as well as individual routes.

Auth class should be inside app/middleware/Auth.php with namespace namespace app\\middleware\\;

Request

Request and Response can be accessed in both controller method and closure from parameter.

-return url without get params. eg. /admin/index

Response

Response class have two method as of now.

views

License & copyright

Copyright (c) Ashish Bhandari

Licensed under the MID License.


All versions of carpo-php with dependencies

PHP Build Version
Package Version
No informations.
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 ashish336b/carpo-php contains the following files

Loading the files please wait ....