PHP Classes

PHP API Assembler: Application to generate files to implement an API

Recommend this page to a friend!
  Info   View files View files (157)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-08-21 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 111 This week: 1All time: 9,618 This week: 78Up
Version License PHP version Categories
apiassembler 1.0.0GNU Lesser Genera...7Libraries, Web services, Console, Cod..., P...
Description 

Author

This package implements an application to generate files to implement an API.

It provides an application that can be run from the command line console.

The application can run either using parameters passed from the command line arguments or provides an interactive user interface in the console that allows developers to configure the API files generated to provide API functions that perform operations based on data stored in a database.

The application can generate controller classes, routing configuration, database access configuration and Postman collection files.

Currently, this application allows developers to generate API from the configuration that defines:

- The database type (MySQL, Oracle, MySQL Server)

- The database name and server connection parameters

- The database tables and fields that will be accessed

- Database access caching

- The directory where the API application will be stored

- Parameters for the API request routing

- Functions to add to the API

- Authentication of uses that can access the API

Innovation Award
PHP Programming Innovation award nominee
August 2023
Number 6
API development is complex. Developers that want to create an API need to take of many aspects of a working application like the API functions, API routing to classes that will implement the API calls, API user authentication, etc...

This package simplifies the process by providing an application that can generate files to implement an API from parameters passed via command line parameters or via an interactive user interface that can run from the command line console.

Manuel Lemos
Picture of Jorge Castro
  Performance   Level  
Name: Jorge Castro <contact>
Classes: 30 packages by
Country: Chile Chile
Age: 48
All time rank: 12743 in Chile Chile
Week rank: 95 Up1 in Chile Chile Up
Innovation award
Innovation award
Nominee: 14x

Winner: 2x

  Files folder image Files  
File Role Description
Files folder imagedocs (12 files)
Files folder imageexamples (1 directory)
Files folder imagesrc (3 files, 1 directory)
Files folder imagetests (2 files, 1 directory)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Image file cli1.jpg Data Auxiliary data
  Accessible without login Image file cli2.jpg Data Auxiliary data
  Accessible without login Image file cli3.jpg Data Auxiliary data
  Accessible without login Image file cli_apifolder.jpg Data Auxiliary data
  Accessible without login Image file cli_apimethod1.jpg Data Auxiliary data
  Accessible without login Image file cli_folder.jpg Data Auxiliary data
  Accessible without login Image file cli_generateapi.jpg Data Auxiliary data
  Accessible without login Image file cli_rename.jpg Data Auxiliary data
  Accessible without login Image file cli_router.jpg Data Auxiliary data
  Accessible without login Image file cli_run.jpg Data Auxiliary data
  Accessible without login Image file cli_saveapi.jpg Data Auxiliary data
  Accessible without login Image file cli_scan.jpg Icon Icon image

  Files folder image Files  /  examples  
File Role Description
Files folder imagenewexample (5 files, 2 directories)

  Files folder image Files  /  examples  /  newexample  
File Role Description
Files folder imageapi (3 files)
Files folder imagerepo (7 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login HTML file dummy.html Doc. Documentation
  Accessible without login Plain text file router.php Example Example script
  Accessible without login Plain text file run.sh Data Auxiliary data

  Files folder image Files  /  examples  /  newexample  /  api  
File Role Description
  Plain text file ProductApiController.php Class Class source
  Plain text file ProductCategoryApiController.php Class Class source
  Plain text file UserApiController.php Class Class source

  Files folder image Files  /  examples  /  newexample  /  repo  
File Role Description
  Plain text file AbstractProductCategoryRepo.php Class Class source
  Plain text file AbstractProductRepo.php Class Class source
  Plain text file AbstractUserRepo.php Class Class source
  Plain text file BaseApiassembler.php Class Class source
  Plain text file ProductCategoryRepo.php Class Class source
  Plain text file ProductRepo.php Class Class source
  Plain text file UserRepo.php Class Class source

  Files folder image Files  /  src  
File Role Description
Files folder imagetemplates (16 files)
  Accessible without login Plain text file apiassembler Example Example script
  Plain text file ApiAssembler.php Class Class source
  Plain text file ApiAssemblerRuntime.php Class Class source

  Files folder image Files  /  src  /  templates  
File Role Description
  Accessible without login Plain text file Template_alias.php Aux. Auxiliary script
  Accessible without login Plain text file Template_class.php Aux. Auxiliary script
  Accessible without login Plain text file Template_count.php Aux. Auxiliary script
  Accessible without login Plain text file Template_createauth.php Aux. Auxiliary script
  Accessible without login Plain text file Template_delete.php Aux. Auxiliary script
  Accessible without login Plain text file Template_empty.php Aux. Auxiliary script
  Accessible without login Plain text file Template_get.php Aux. Auxiliary script
  Accessible without login Plain text file Template_htaccess.php Aux. Auxiliary script
  Accessible without login Plain text file Template_insert.php Aux. Auxiliary script
  Accessible without login Plain text file Template_listall.php Aux. Auxiliary script
  Accessible without login Plain text file Template_listfilter.php Aux. Auxiliary script
  Accessible without login Plain text file Template_listpaged.php Aux. Auxiliary script
  Accessible without login Plain text file Template_listraw.php Aux. Auxiliary script
  Accessible without login Plain text file Template_router.php Aux. Auxiliary script
  Accessible without login Plain text file Template_update.php Aux. Auxiliary script
  Accessible without login Plain text file Template_validation.php Aux. Auxiliary script

  Files folder image Files  /  tests  
File Role Description
Files folder imagetmp (5 files, 2 directories)
  Plain text file ApiAssember_Test.php Class Class source
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  tmp  
File Role Description
Files folder imageapi (33 files)
Files folder imagerepo2 (66 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file p20 Data Auxiliary data
  Accessible without login Plain text file p20s.bat Data Auxiliary data
  Accessible without login Plain text file p20s.sh Data Auxiliary data
  Accessible without login Plain text file router.php Example Example script

  Files folder image Files  /  tests  /  tmp  /  api  
File Role Description
  Plain text file Actor2ApiController.php Class Class source
  Plain text file ActorApiController.php Class Class source
  Plain text file AddresApiController.php Class Class source
  Plain text file CategoryApiController.php Class Class source
  Plain text file CityApiController.php Class Class source
  Plain text file CountryApiController.php Class Class source
  Plain text file CustomerApiController.php Class Class source
  Plain text file DummytableApiController.php Class Class source
  Plain text file DummytApiController.php Class Class source
  Plain text file Film2ApiController.php Class Class source
  Plain text file FilmActorApiController.php Class Class source
  Plain text file FilmApiController.php Class Class source
  Plain text file FilmCategoryApiController.php Class Class source
  Plain text file FilmTextApiController.php Class Class source
  Plain text file FumJobApiController.php Class Class source
  Plain text file FumLogApiController.php Class Class source
  Plain text file InventoryApiController.php Class Class source
  Plain text file LanguageApiController.php Class Class source
  Plain text file MysecTableApiController.php Class Class source
  Plain text file PaymentApiController.php Class Class source
  Plain text file ProductApiController.php Class Class source
  Plain text file ProducttypeApiController.php Class Class source
  Plain text file ProducttypeAutoApiController.php Class Class source
  Plain text file RentalApiController.php Class Class source
  Plain text file RepoApiController.php Class Class source
  Plain text file StaffApiController.php Class Class source
  Plain text file StoreApiController.php Class Class source
  Plain text file TablachildApiController.php Class Class source
  Plain text file TablagrandchildApiController.php Class Class source
  Plain text file TablaparentApiController.php Class Class source
  Plain text file TabletestApiController.php Class Class source
  Plain text file TestProductApiController.php Class Class source
  Plain text file TypetableApiController.php Class Class source

  Files folder image Files  /  tests  /  tmp  /  repo2  
File Role Description
  Plain text file AbstractActor2Repo.php Class Class source
  Plain text file AbstractActorRepo.php Class Class source
  Plain text file AbstractAddresRepo.php Class Class source
  Plain text file AbstractCategoryRepo.php Class Class source
  Plain text file AbstractCityRepo.php Class Class source
  Plain text file AbstractCountryRepo.php Class Class source
  Plain text file AbstractCustomerRepo.php Class Class source
  Plain text file AbstractDummytableRepo.php Class Class source
  Plain text file AbstractDummytRepo.php Class Class source
  Plain text file AbstractFilm2Repo.php Class Class source
  Plain text file AbstractFilmActorRepo.php Class Class source
  Plain text file AbstractFilmCategoryRepo.php Class Class source
  Plain text file AbstractFilmRepo.php Class Class source
  Plain text file AbstractFilmTextRepo.php Class Class source
  Plain text file AbstractFumJobRepo.php Class Class source
  Plain text file AbstractFumLogRepo.php Class Class source
  Plain text file AbstractInventoryRepo.php Class Class source
  Plain text file AbstractLanguageRepo.php Class Class source
  Plain text file AbstractMysecTableRepo.php Class Class source
  Plain text file AbstractPaymentRepo.php Class Class source
  Plain text file AbstractProductRepo.php Class Class source
  Plain text file AbstractProducttypeAutoRepo.php Class Class source
  Plain text file AbstractProducttypeRepo.php Class Class source
  Plain text file AbstractRentalRepo.php Class Class source
  Plain text file AbstractStaffRepo.php Class Class source
  Plain text file AbstractStoreRepo.php Class Class source
  Plain text file AbstractTablachildRepo.php Class Class source
  Plain text file AbstractTablagrandchildRepo.php Class Class source
  Plain text file AbstractTablaparentRepo.php Class Class source
  Plain text file AbstractTabletestRepo.php Class Class source
  Plain text file AbstractTestProductRepo.php Class Class source
  Plain text file AbstractTypetableRepo.php Class Class source
  Plain text file Actor2Repo.php Class Class source
  Plain text file ActorRepo.php Class Class source
  Plain text file AddresRepo.php Class Class source
  Plain text file BaseSakila.php Class Class source
  Plain text file CategoryRepo.php Class Class source
  Plain text file CityRepo.php Class Class source
  Plain text file CountryRepo.php Class Class source
  Plain text file CustomerRepo.php Class Class source
  Plain text file DummyClass.php Class Class source
  Plain text file DummytableRepo.php Class Class source
  Plain text file DummytRepo.php Class Class source
  Plain text file Film2Repo.php Class Class source
  Plain text file FilmActorRepo.php Class Class source
  Plain text file FilmCategoryRepo.php Class Class source
  Plain text file FilmRepo.php Class Class source
  Plain text file FilmTextRepo.php Class Class source
  Plain text file FumJobRepo.php Class Class source
  Plain text file FumLogRepo.php Class Class source
  Plain text file InventoryRepo.php Class Class source
  Plain text file LanguageRepo.php Class Class source
  Plain text file MysecTableRepo.php Class Class source
  Plain text file PaymentRepo.php Class Class source
  Plain text file ProductRepo.php Class Class source
  Plain text file ProducttypeAutoRepo.php Class Class source
  Plain text file ProducttypeRepo.php Class Class source
  Plain text file RentalRepo.php Class Class source
  Plain text file StaffRepo.php Class Class source
  Plain text file StoreRepo.php Class Class source
  Plain text file TablachildRepo.php Class Class source
  Plain text file TablagrandchildRepo.php Class Class source
  Plain text file TablaparentRepo.php Class Class source
  Plain text file TabletestRepo.php Class Class source
  Plain text file TestProductRepo.php Class Class source
  Plain text file TypetableRepo.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:111
This week:1
All time:9,618
This week:78Up