Giter VIP home page Giter VIP logo

xilem-cms's Introduction

micro-ice-cms

the most expressive psr-15 https://www.php-fig.org/psr/psr-15/ cms yet

Module strucutre

[-]Cms [-]config routes.php config.php [-]src [-]V1 [-]Rest [-]Pages [-]Listener Pages.php PagesFactory.php [-]Middleware Pages.php PagesFactory.php [-]Repository PagesEntity.php PagesCollection.php PagesModel.php PagesModelFactory.php [-]RequestHandler Pages.php PagesFactory.php [+]RPC [+]gRPC DbAdapter.php DbAdapterFactory.php ConfigProvider.php RestDispatchTrait.php

[+]templates

Database connection

  • all database connection settings are under micro-ice-db key in config file
  • db connection can be configured by version under version key (ex: v1)
  • db connection can be set also general using _default key
  • first adapter check for version specified config and if fails goes to _default Db connection params

https://zendframework.github.io/zend-db/adapter/#creating-an-adapter-using-dependency-injection

  • driver required Mysqli, Sqlsrv, Pdo_Sqlite, Pdo_Mysql, Pdo(= Other PDO Driver)
  • database generally required the name of the database (schema)
  • username generally required the connection username
  • password generally required the connection password
  • hostname not generally required the IP address or hostname to connect to
  • port not generally required the port to connect to (if applicable)
  • charset not generally required the character set to use

Options are adapter-dependent

Other names will work as well. Effectively, if the PHP manual uses a particular naming, this naming will be supported by the associated driver. For example, dbname in most cases will also work for 'database'. Another example is that in the case of Sqlsrv, UID will work in place of username.

xilem-cms's People

Contributors

repkit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.