Download the PHP package thnguyendev/phpcore without Composer

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

phpcore 3.0.0

phpcore is a tiny MVC framework to develop web-based applications in PHP. It's simple and easy to use.

Quick start

  1. Download and install Composer by the following url https://getcomposer.org/download/
  2. Create phpcore project by Composer. Execute below commands

  3. Configure web server

    • Apache server Modify .htaccess file of project as per following

    • Nginx server Insert following codes into your server configuration in nginx.conf
  4. Create Routes [project folder]/src/server/models/Routes.php

  5. Modify startup file [project folder]/src/server/Startup.php

  6. Create HomeController [project folder]/src/server/controllers/HomeController.php

  7. Create a view for HomeController [project folder]/src/server/views/Home.php

Web API

Steps to create a Web API with phpcore framework.

  1. Follow steps 1 to 3 from Quick start to setup new project.
  2. Create Routes [project folder]/src/server/models/Routes.php

  3. Modify startup file [project folder]/src/server/Startup.php

  4. Create an API controller [project folder]/src/server/controllers/api/GetInfoController.php

Use Doctrine ORM to work with Sqlite database

This example will create a Web API that returns data from SQLite with Doctrine, make sure that SQLite PDO has been enabled in PHP configuration.

  1. Follow steps 1 to 3 from Quick start to setup new project.
  2. Modify file [project folder]/composer.json

    Run below command in console to update project

  3. Create Info class [project folder]/src/server/models/Info.php

  4. Create DataService class [project folder]/src/server/services/DataService.php

  5. Create database schema with Doctrine command-line interface. First, create configuration file [project folder]/cli-config.php

    Then run below command

  6. Create Routes [project folder]/src/server/models/Routes.php

  7. Modify startup file [project folder]/src/server/Startup.php

  8. Create an API controller [project folder]/src/server/controllers/api/GetInfoController.php

Firebase jwt authorization

This example demonstrate authentication with Firebase Jwt.

  1. Follow steps 1 to 3 from Quick start to setup new project.
  2. Modify file [project folder]/composer.json

    Run below command in console to update project

  3. Create AuthorizationService class [project folder]/src/server/services/AuthorizationService.php

  4. Create Routes [project folder]/src/server/models/Routes.php

  5. Modify startup file [project folder]/src/server/Startup.php

  6. Create Authenticate User API controller [project folder]/src/server/controllers/api/AuthenticateUserController.php

  7. Create an API controller [project folder]/src/server/controllers/api/GetInfoController.php

All versions of phpcore 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 thnguyendev/phpcore contains the following files

Loading the files please wait ....