Download the PHP package philip/instagres without Composer
On this page you can find all versions of the php package philip/instagres. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download philip/instagres
More information about philip/instagres
Files in philip/instagres
Package instagres
Short Description PHP SDK for creating instant claimable Neon PostgreSQL databases with zero configuration
License Apache-2.0
Homepage https://neon.com
Informations about the package instagres
Neon Instagres PHP SDK
Instagres (Claimable Postgres) gives you a real Neon Postgres database right away. No account or auth. No signup, login, or API key to create a database.
Each database runs for 72 hours unless you claim it into your Neon account. After you claim, it is yours for ongoing use under your free or paid plan. Open the claim_url from the API when you are ready.
This package calls Neon's public Claimable Postgres API at neon.new.
Features
- Instant provisioning. No Neon account or auth to call the create API
- Connect with the returned URLs. No Neon login for queries (only for claim)
- Immediate connection string availability
- 72-hour lifespan unless you claim the database for permanent use in Neon (
claim_urlin the response) - Create a database with one method call
- Pooled and direct connection strings in the response
getDatabase($id)to fetch the same resource shape as create- Helpers for PDO parsing, claim URLs, and UUID v4 or v7
- Optional logical replication on create
- PHP 8.1+
Installation
Quick start
The API returns a pooled URL. The SDK adds direct_connection_string by adjusting the host.
Documentation
- Documentation index
- Migrate from 0.1.x
- Usage guide
- API reference
Examples
Clone the repo and run:
Example output shape (passwords and hosts are fake):
Run the script yourself to see real values. Try php examples/seed-database.php for PDO plus SQL from a file. Run INSTAGRES_LIVE=1 php examples/comprehensive.php for optional live API demos.
Testing
Resources
License
Apache License 2.0. See LICENSE.
Contributing
Open a Pull Request. Contributions are welcome.