Use WordPress user database in external php application

If your main concern is using your WordPress database for user authentication, I’d look into the WP OAuth Server plugin.

We use this for authentication with a 3rd party mobile app: app users type their username and password into the app which then – thanks to the plugin – authenticates them against their credentials in our WordPress database.