Questions tagged [auraphp]

The Aura Project for PHP is a set of well-tested and fully decoupled components libraries.

The Aura project centers around a collection of independent packages. Each package is self-contained and has only the things it needs for its core purpose. None of the packages depends on any of the other.

20 questions
0
votes
1 answer

Use php array as parameter for Postgres IN clause

I am trying to bind a PHP array as argument for a SQL stmt. I am using auraSQL extended PDO so it looks like this: $php_array = ['first', 'second', 'third'] $db->fetchColumn("SELECT * FROM my_table WHERE column IN (:php_array), ['php_array' =>…
0
votes
1 answer

How to create an Aura DI container?

I installed a composer, downloaded the Aura, created an index.pxp and wrote in it: require('vendor/autoload.php'); use Aura\Di\ContainerBuilder; $builder = new ContainerBuilder(); $di = $builder->newInstance(); $object =…
fosh4455
  • 361
  • 1
  • 4
  • 11
0
votes
1 answer

AuraPHP router not picking up parameters

I'm trying to get the current version of the Aura router working with nginx. I'm using the nginx config from the documentation and trying to get the closure route from https://github.com/auraphp/Aura.Router/blob/3.x/docs/getting-started.md…
Andy
  • 2,095
  • 1
  • 29
  • 59
0
votes
1 answer

How Can I use PSR7 Middlewares in PHP

I've installed the following composer packages: "require": { "beatswitch/lock": "0.2.0", "league/event": "2.1.2", "oscarotero/psr7-middlewares": "v3.16.1", "pdepend/pdepend": "2.2.4", "sebastian/phpcpd": "2.0.4", "instaclick/php-code-sniffer":…
hardking
  • 193
  • 2
  • 17
0
votes
1 answer

PHP (AuraPHP router) - routing with more than one optional parameters

i have got a little problem in my auraphp router. For example i have this URL : oleje/134/motorove-oleje-pro-automobily/ But i can have this URl also : oleje/134/motorove-oleje-pro-automobily/oleje-shell The "oleje-shell" part of URL is optional and…
1
2